18.08.2015, 21:15
If a hacker hack money it set it back where it was. how to do that server sided. I'm using Ini.
PlayerInfo[playerid][pCash].
PlayerInfo[playerid][pCash].
public OnPlayerUpdate(playerid) { if(GetPlayerMoney(playerid) != PlayerInfo[playerid][pCash]) { GivePlayerMoney(playerid, -GetPlayerMoney(playerid)); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); // Player's a hacker, do whatever u want with him } return 1; }
If a hacker hack money it set it back where it was. how to do that server sided. I'm using Ini.
PlayerInfo[playerid][pCash]. |
if( GetPlayerMoney(playerid) < 10 ) return SendClientMessage( playerid, -1, "You've less than $10..");
if( PlayerInfo[playerid][pCash] < 10 ) return SendClientMessage( playerid, -1, "You've less than $10..");
I mean only if the player hacked the money. but it's resting this one
GivePlayerMoney(playerid, trucker[End][cost]); i don't want it to reset this one. |
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + trucker[End][cost];