Server sided money
#2

it shouldn't be checked on OnPlayerUpdate bcz it gets called too often, but here is the idea:

Код:
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;
}
Reply


Messages In This Thread
Server sided money - by DerickClark - 18.08.2015, 21:15
Re: Server sided money - by Denying - 18.08.2015, 21:19
Re: Server sided money - by LetsOWN[PL] - 18.08.2015, 21:22
Re: Server sided money - by DerickClark - 18.08.2015, 21:28
Re: Server sided money - by kiloman3 - 19.08.2015, 13:46

Forum Jump:


Users browsing this thread: 3 Guest(s)