How to check if a player is new?
#5

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
Add a boolean to your script

pawn Код:
new bool:IsNew[MAX_PLAYERS];

//somewhere you check if they've registered. EG, showing a register dialog.

IsNew[playerid]=true;

//Actually adding the account, or making them "not new".

IsNew[playerid]=false;

//example
public OnPlayerSpawn(playerid)
{
    if(IsNew[playerid]==true)
    {
        SendClientMessage(playerid,-1,"Welcome.");
        IsNew[playerid]=false;
    }
    return 1;
}
Hope it helped
Alrighty, I'll give this one try, Thanks
Reply


Messages In This Thread
How to check if a player is new? - by Jamcraftadam - 11.08.2013, 10:53
Re: How to check if a player is new? - by DobbysGamertag - 11.08.2013, 11:58
Re: How to check if a player is new? - by Misiur - 11.08.2013, 11:59
Re: How to check if a player is new? - by RajatPawar - 11.08.2013, 12:41
Re: How to check if a player is new? - by Jamcraftadam - 11.08.2013, 13:15

Forum Jump:


Users browsing this thread: 4 Guest(s)