Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by S0n1COwnsYou
PHP Code:
//AFTER YOUR INCLUDES
new PlayerTazed[MAX_PLYAERS] = 0;
//INSIDE YOUR TAZE FUNCTION
PlayerTazed[damagedid] = 1;
//INSIDE YOUR DANCE COMMAND
if(PlayerTazed[playerid] == 0)
{
//YOUR CODE
}
else SendClientMessage(playerid,-1,"error you are tazed");
|
Wouldn't it be betted to put this shitty shit inside command callback to prevent using all the commands? And why I am saying, that is a shitty shit.. because, I can use animation check, you will use less memory then.