Quote:
|
Originally Posted by v3x
Could I do something like this to prevent it? Small:
if( (get_user_button(id)&IN_ATTACK) && g_iHits[iVictim] <= HITS_NOHELM )
|
You answered your self
But i would feel better checking it every frame with a bool.
Code:
// etc etc
new bool:shouldCheck[33]
...
...
public client_PreThink(id) {
if( (get_user_button(id)&IN_ATTACK) ) {
shouldCheck[id] = true
}
else {
shouldCheck[id] = false
}
}
Then just execute the code through one big if statement ^^
[/small]
__________________