GivePlayerMoney
#4

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


Messages In This Thread
GivePlayerMoney - by saffierr - 02.04.2015, 21:44
Re: GivePlayerMoney - by DaniceMcHarley - 02.04.2015, 21:47
Re: GivePlayerMoney - by saffierr - 02.04.2015, 21:49
Re: GivePlayerMoney - by BleverCastard - 02.04.2015, 22:04
Re: GivePlayerMoney - by saffierr - 02.04.2015, 22:06
Re: GivePlayerMoney - by saffierr - 02.04.2015, 23:00
Re: GivePlayerMoney - by Crayder - 02.04.2015, 23:07
Re: GivePlayerMoney - by saffierr - 02.04.2015, 23:36
Re: GivePlayerMoney - by willsuckformoney - 03.04.2015, 01:30
Re: GivePlayerMoney - by [ABK]Antonio - 03.04.2015, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)