13.09.2012, 17:27
add this on top of your script
add this with your other timers...
Change this
Код:
forward t_unTaze(playerid); // timer for untaze
Код:
public t_unTaze(playerid) { if(Tazed[playerid] == 1) { ClearAnimations(playerid); TogglePlayerControllable(playerid, 1); Tazed[playerid] = 0; SendClinetMessage(playerid ,COLOR ,"You regain muscle control!"); } return 1; }
Код:
Tazed[targetid] =1; TogglePlayerControllable(targetid, 0); ApplyAnimation(targetid,"CRACK","crckdeth2",4.1,1,1,1,1,1); // this is added SetTimerEx("t_unTaze" ,5000 ,false ,"i" ,targetid); return 1;