OnPlayerUpdate HELP
#4

As provided above in the last 2nd post, or declare a new global variable and do this:
pawn Код:
//Before your callbacks & commands
new HSent[MAX_PLAYERS] = 0;

public OnPlayerUpdate(playerid)
{
    if(HSent[playerid] == 0)
    {
        if(GetPlayerScore(playerid) >= 100)
        {
            SendClientMessage(playerid, -1, "hey");
            HSent[playerid] = 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerUpdate HELP - by Supermaxultraswag - 08.11.2014, 11:35
Re: OnPlayerUpdate HELP - by dominik523 - 08.11.2014, 12:12
Re: OnPlayerUpdate HELP - by Supermaxultraswag - 08.11.2014, 12:43
Re: OnPlayerUpdate HELP - by biker122 - 08.11.2014, 12:43
Re: OnPlayerUpdate HELP - by dominik523 - 08.11.2014, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)