18.08.2011, 21:53
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....
Yes i got timer and forward
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);