head shoot system
#2

pawn Код:
if(fogueo == 1)
{
new index;
index = GetPlayerAnimationIndex(playerid);
if(index == 1173 || index == 1175 || index == 1177 || index == 1178)
{
SetPVarInt(playerid, "Headshotted", 1);
SetPlayerHealth(playerid, 0);
}
}
Eso ponlo en OnPlayerTakeDamage, y asegurate que la var de fogueo se active en el propio FS, ya que si es el GM fogueo seguirб siendo 0 en el FS. Lo del timer puedes quitarlo, es mбs eficiente de esta forma.
Reply


Messages In This Thread
head shoot system - by Porta0123 - 08.09.2013, 13:53
Respuesta: head shoot system - by Braun - 08.09.2013, 14:00
Respuesta: head shoot system - by oOFotherOo - 08.09.2013, 14:04
Re: head shoot system - by Porta0123 - 08.09.2013, 14:12
Respuesta: head shoot system - by Braun - 08.09.2013, 14:16
Re: head shoot system - by Porta0123 - 08.09.2013, 14:21
Respuesta: head shoot system - by Braun - 08.09.2013, 14:29
Re: head shoot system - by Porta0123 - 08.09.2013, 14:41
Respuesta: head shoot system - by Braun - 08.09.2013, 14:49
Re: head shoot system - by Porta0123 - 08.09.2013, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)