21.10.2012, 14:34
O comando headshot mata com todas as armas alguem me ajuda ?
Code:
public HeadShot()
{
new
index;
for(new playerid; playerid < maxPlayers; playerid++)
{
if(IsPlayerConnected(playerid))
{
index = GetPlayerAnimationIndex(playerid);
if(index == 1173 || index == 1175 || index == 1177 || index == 1178)
{
SetPVarInt(playerid, "Headshot", 1);
SetPlayerHealth(playerid, 0);
}
}
}
return 1;
}

