[AJUDA]Fs De Headshot
#7

No topo:
Quote:

#define TIMER_INTERVAL 150

No: public OnGameModeInit()
Quote:

SetTimer("CheckHeadShot", TIMER_INTERVAL, 1);

No: public OnPlayerDeath(playerid, killerid, reason)
Quote:

if(GetPVarInt(playerid, "Headshotted") == 1)
{
SetPVarInt(playerid, "Headshotted", 0);
GameTextForPlayer(playerid, "Head Shot !!", 5000, 3);
GameTextForPlayer(killerid, "Head Shot!!", 5000, 3);
}

No fim do gm
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;
}

Creditos desconhecidos.

@Edit
Nem deu tempo
Reply


Messages In This Thread
[AJUDA]Fs De Headshot - by Jake_Dunlapp - 24.04.2012, 13:14
Re: [AJUDA]Fs De Headshot - by Edu33 - 24.04.2012, 13:16
Re: [AJUDA]Fs De Headshot - by Jake_Dunlapp - 24.04.2012, 13:18
Re: [AJUDA]Fs De Headshot - by 4LiSs0N - 24.04.2012, 13:19
Re: [AJUDA]Fs De Headshot - by rjjj - 24.04.2012, 13:20
Re: [AJUDA]Fs De Headshot - by Jake_Dunlapp - 24.04.2012, 13:25
Re: [AJUDA]Fs De Headshot - by Edu33 - 24.04.2012, 13:28
Re: [AJUDA]Fs De Headshot - by rodrigooo - 24.04.2012, 16:14
Re: [AJUDA]Fs De Headshot - by bombomloko - 24.04.2012, 19:30
Re: [AJUDA]Fs De Headshot - by RoacH` - 24.04.2012, 19:54

Forum Jump:


Users browsing this thread: 3 Guest(s)