17.03.2013, 13:15
So hello , how do I make it so players get 20000$ first time they join?
//global
new
bool:g_bFirstLogin[ MAX_PLAYERS ]
;
//on register
g_bFirstLogin[ playerid ] = true;
//on spawn
if( g_bFirstLogin[ playerid ] )
{
GivePlayerMoney( playerid, 20000 );
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_REGISTER)
{
if(!response) return Kick(playerid);
if(response)
{
//your register code here
GivePlayerMoney(playerid, 20000);//give's player money for first connect on server
}
}
return 1;
}