24.04.2012, 13:28
No topo:
No: public OnGameModeInit()
No: public OnPlayerDeath(playerid, killerid, reason)
No fim do gm
Creditos desconhecidos.
@Edit
Nem deu tempo
Quote:
#define TIMER_INTERVAL 150 |
Quote:
SetTimer("CheckHeadShot", TIMER_INTERVAL, 1); |
Quote:
if(GetPVarInt(playerid, "Headshotted") == 1) { SetPVarInt(playerid, "Headshotted", 0); GameTextForPlayer(playerid, "Head Shot !!", 5000, 3); GameTextForPlayer(killerid, "Head Shot!!", 5000, 3); } |
Quote:
forward CheckHeadShot(); public CheckHeadShot() { new index; for(new playerid; playerid < maxPlayers; playerid++) { if(IsPlayerConnected(playerid)) { index = GetPlayerAnimationIndex(playerid); if(index == 1173 || index == 1175 || index == 1177 || index == 117 { SetPVarInt(playerid, "Headshotted", 1); SetPlayerHealth(playerid, 0); } } } return 1; } |
@Edit
Nem deu tempo