Serverside Money ( GTA : RP ) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Serverside Money ( GTA : RP ) (
/showthread.php?tid=277683)
Serverside Money ( GTA : RP ) -
Aprezt - 18.08.2011
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
Re: Serverside Money ( GTA : RP ) -
cessil - 18.08.2011
you'd have to explain yourself better as well as explain what SafeGivePlayerMoney(i, PlayerInfo[i][pCash]);
and SafeResetPlayerMoney(i); do