27.12.2014, 13:28
So.. I got a quick question, how could I create a system so the player when first registers on my server, it will get 10 score ? I got a stunt server.
SetPlayerScore(playerid, 10);
new Registered[MAX_PLAYERS];
// Under your register code add
Registered[playerid] = 1;
public OnPlayerSpawn(playerid)
{
SetPlayerScore(playerid, 10);
Registered[playerid] = 0;
return 1;
}
PlayerInfo[playerid][pScore] = 10;
PlayerInfo[playerid][pLevel] = 10;
SetPlayerScore(playerid,10);
PlayerInfo[playerid][Score] = 0;