01.08.2011, 07:21
In my server score is equal to money
but I don't want that please help
but I don't want that please help
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
GetPlayerName(playerid, playrname, sizeof(playrname));
for(new i = 0; i < MAX_SAVE; i++) {
if(isStringSame(savedNames[i], playrname, MAX_PLAYER_NAME)) {
GivePlayerMoney(playerid, savedInfo[i][0]);
bounty[playerid] = savedInfo[i][2];
savedInfo[i][0]=savedInfo[i][1]=savedInfo[i][2]=0;
savedNames[i][0]=0;
for(new j = 0; j < MAX_WEAPONS; j++) {
playerWeapons[playerid][j]=savedWeapons[i][j];
savedWeapons[i][j]=0;
}
SendClientMessage(playerid, COLOR_GREEN, "Your money has been restored.");
}
}
GetPlayerName(playerid, playername, sizeof(playername));
format(savedNames[savePos], MAX_PLAYER_NAME, "%s",playername);
savedInfo[savePos][0] = GetPlayerMoney(playerid);
savedInfo[savePos][2] = bounty[playerid];
savedInfo[savePos][3] = 0;
public OnPlayerUpdate( playerid ) // Or something like this ( A timer )
{
SetPlayerScore( playerid, GetPlayerMoney( playerid ) );
return 1;
}