24.09.2017, 01:40
Olб pessoal, eu tenho essas linhas de cуdigo:
Mas o que acontece й o seguinte, quando a pessoa й atingida por um tiro de tazer ela comeзa a executar a animaзгo e logo para, como faзo pra resolver isso?
pawn Код:
TogglePlayerControllable(damagedid, 0);
format(string, sizeof(string), "*** %s foi atingido por um tiro de tazer de %s", sendername, giveplayer);
SendClientMessageInRange(30.0, damagedid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessage(damagedid,COLOR_DBLUE,"Vocк foi imobilizado, vai se recuperar em 10 segundos!");
ApplyAnimation(damagedid,"CRACK","crckdeth1",4.1,0,1,1,1,1);
Tazed[damagedid] = 1;
if(losehp) {} else SetPlayerHealth(damagedid, health+amount);