02.04.2015, 22:04
Simple anti cheat.
And then when you purchase something:
PlayerInfo[playerid][Money] -= (+=) 500;
ResetMonet(playerid);
pawn Код:
ResetMoney(playerid)
{
if(PlayerInfo[playerid][Cash] != GetPlayerMoney(playerid))
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][Cash]);
}
return 1;
}
PlayerInfo[playerid][Money] -= (+=) 500;
ResetMonet(playerid);