Serverside Money ( GTA : RP )
#1

Hello. I need some help whit serverside money. If player use cheat he can cheat money but how i can do like he cant make money them. When player freez money first time this run out but 1 minutes later he can cheat more....

Sorry my english....

pawn Code:
public MoneyCheat()
{
    for( new i = 0; i < MAX_PLAYERS; i++ )
    {
        if( IsPlayerConnected(i) )
        {
            new getMoney = GetPlayerMoney(i);
            if( getMoney != PlayerInfo[i][pCash] )
            {
                SafeGivePlayerMoney(i, PlayerInfo[i][pCash]);
                SafeResetPlayerMoney(i);
            }
        }
    }
}

SetTimer("MoneyCheat",1000,1);
Yes i got timer and forward
Reply
#2

you'd have to explain yourself better as well as explain what SafeGivePlayerMoney(i, PlayerInfo[i][pCash]);
and SafeResetPlayerMoney(i); do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)