21.01.2012, 07:57
Help me guys, it doesn't works if the players has died by falling. It works only if the players has been killed. So this is the script:
Is there any possible way to make it works?
Thanks!
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
if(gTeam[playerid] == TEAM_RED) RedCount--;
if(gTeam[playerid] == TEAM_GREEN) GreenCount--;
PlayerInfo[playerid][Latezor] = 1;
new tmp[256];
new tmp2[256];
format(tmp, sizeof(tmp), "~r~%d", RedCount);
TextDrawSetString(Text:Textdraw13, tmp);
format(tmp2, sizeof(tmp2), "~g~%d", GreenCount);
TextDrawSetString(Text:Textdraw14, tmp2);
return 1;
}
Thanks!