[HELP/REQ] Flashing HUD s0beit

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
How to make flashing HUD text on C++ (s0beit project) ??
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Flash like how? Appear dissapear or random?

You could use rand() % 255 for colors to be random, or make a separate function to switch between colors based on a time delay.

About adding a logo, look in s0beit source - D3DXCreateTextureFromFile()
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Flashing like blink.
If you activated (for example) Godmode, Instead regular Green Color in s0beit HUD there will be blinking Green (Light green [after 100ms] regular green)...
Thanks on logo  :urtheman:
but you can expain more about how to do that?  :eek:hgodwhy:
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
In proxyIDirect3DDevice9.cpp -> proxyID3DDevice9_InitOurShit -> texturesInitResources -> load your own image here, follow the example of the speedometer. Then use the drawing of the spedometer as example to draw your own image.
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Thanks [member=111]springfield[/member]  :forever_hurra:
And how to do the other thing:  :looky:
Flashing like blink.
If you activated (for example) Godmode, Instead regular Green Color in s0beit HUD there will be blinking Green (Light green [after 100ms] regular green)...




And how to do report flood?
Example: /Report RandID RandomReason

static const char RandomReason[] =
{"Fly Hack",
"Speed Hack",
"Spammer",
"Fuck my mind :mad:"
};
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
UP
Thanks [member=111]springfield[/member]  :forever_hurra:
And how to do the other thing:  :looky:
Flashing like blink.
If you activated (for example) Godmode, Instead regular Green Color in s0beit HUD there will be blinking Green (Light green [after 100ms] regular green)...




And how to do report flood?
Example: /Report RandID RandomReason

static const char RandomReason[] =
{"Fly Hack",
"Speed Hack",
"Spammer",
"Fuck my mind :mad:"
};

 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
static const char* RandomReason[] =
{
	"Fly Hack",
	"Speed Hack",
	"Spammer",
	"Fuck my mind >:("
};

void randomReport() {

	int id = rand() % SAMP_PLAYER_MAX;
	int reason = rand() % 3;

	say("/report %d %s", id, RandomReason[reason]);
}
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
THANKS!! [member=111]springfield[/member]  :somuchwin:
And How to do this??
NNyWFpG.gif
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Idk, there's many methods to do that. Try yourself.

Code:
bool bFlash;

DWORD flash() {
	bFlash ^= 1;
	if (bFlash) { return(D3DCOLOR_ARGB(255, 255, 255, 255)); }
	else { return(D3DCOLOR_ARGB(0, 255, 255, 255)); }
}
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
Doesn't work [member=111]springfield[/member]  :bawww:  :dont_care: // Where to put this shit ??  :surprised:  :sweet_jesus:
HUD_TEXT_TGL2( x2, cheat_state->_generic.weaponcrasher ? flash : color_disabled2, "Weapon Crasher" );
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
174
that's bad don't do that people may sue you.
// <- comment
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
0x688 link said:
that's bad don't do that people may sue you.
// <- comment
Sue on what?
I don't understand you... :me_gusta:
What i did bad  :imoverit:
 

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
UP! [member=2]0x688[/member] [member=111]springfield[/member] [member=5679]T3K[/member]
0x688 link said:
that's bad don't do that people may sue you.
// <- comment
Pa0NeiX link said:
Sue on what?
I don't understand you... :me_gusta:
What i did bad  :imoverit:



Pa0NeiX link said:
THANKS!! [member=111]springfield[/member]  :somuchwin:
And How to do this??
NNyWFpG.gif
springfield link said:
Idk, there's many methods to do that. Try yourself.

Code:
bool bFlash;

DWORD flash() {
	bFlash ^= 1;
	if (bFlash) { return(D3DCOLOR_ARGB(255, 255, 255, 255)); }
	else { return(D3DCOLOR_ARGB(0, 255, 255, 255)); }
}
Pa0NeiX link said:
Doesn't work [member=111]springfield[/member]  :bawww:  :dont_care: | Where to put this shit ??  :surprised:  :sweet_jesus:
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
How the fuck should i know? Put it where you define the color for drawing. Also you need to call it like 'flash()'.
And stop bumping and spamming and act retarded.
 
Top