Money on player first join?
#2

If you have an account system (register and login) just use GivePlayerMoney on register.

If a problem occurs (like that you can't give money before spawn) simply add a global bool and use that to check for first-time-login:

pawn Код:
//global
new
    bool:g_bFirstLogin[ MAX_PLAYERS ]
;

//on register
g_bFirstLogin[ playerid ] = true;

//on spawn
if( g_bFirstLogin[ playerid ] )
{
    GivePlayerMoney( playerid, 20000 );
}
Reply


Messages In This Thread
Money on player first join? - by yooMx - 17.03.2013, 13:15
Re: Money on player first join? - by LarzI - 17.03.2013, 13:17
Re: Money on player first join? - by Patrick - 17.03.2013, 13:19
Re: Money on player first join? - by yooMx - 17.03.2013, 13:25
Re: Money on player first join? - by Denying - 17.03.2013, 13:27
Re: Money on player first join? - by yooMx - 17.03.2013, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)