30.12.2012, 23:59
Hello.
When I /q my money saves to the Database etc.
But when I spawn.. noany money!!
Anyone know how to fix this?
PS: Here's my OnPlayerSpawn
When I /q my money saves to the Database etc.
But when I spawn.. noany money!!
Anyone know how to fix this?
PS: Here's my OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid) {
// Let's check if the player has logged in. Have they not? Let's kick them.
new string[128];
if(playerVariables[playerid][pStatus] != 1){
if(playerVariables[playerid][pAdmin]){
format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as level %d administrator.", playerVariables[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_NICERED, string);}
SetPlayerColor(playerid, COLOR_GREY);
GivePlayerMoney(playerid, playerVariables[playerid][pMoney]);
SendClientMessage(playerid, COLOR_GREY, "You need to login before you can spawn.");
return Kick(playerid);
}
return 1;
}