[URGENT]Help me guys!
#1

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:

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;

}
Is there any possible way to make it works?
Thanks!
Reply


Messages In This Thread
[URGENT]Help me guys! - by Zhoom - 21.01.2012, 07:57
Re: [URGENT]Help me guys! - by wildcookie007 - 21.01.2012, 08:08
Re: [URGENT]Help me guys! - by Zhoom - 21.01.2012, 08:21
Re: [URGENT]Help me guys! - by Universal - 21.01.2012, 08:28
Re: [URGENT]Help me guys! - by Zhoom - 21.01.2012, 08:49

Forum Jump:


Users browsing this thread: 1 Guest(s)