17.03.2013, 13:17
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:
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 );
}