Quote:
Originally Posted by KeyWay
Well they dont get kicked when i give them money... And i didnt replace the GIvePlayerMoney, so it means this doesnt work?
|
No, that wanst what I meant
I meant, it looks like you forgot to start the timer
Quote:
Originally Posted by Norn
OnGameModeInit
pawn Code:
SetTimer("MoneyTimer", 1000, 0);
|
or you forgot to add
Quote:
Originally Posted by Norn
pawn Code:
forward MoneyTimer(); public MoneyTimer() { new username[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerCash(i) != GetPlayerMoney(i)) { ResetMoneyBar(i);//Resets the money in the original moneybar, Do not remove! UpdateMoneyBar(i,GetPlayerCash(i));//Sets the money in the moneybar to the serverside cash, Do not remove! new hack = GetPlayerMoney(i) - GetPlayerCash(i); GetPlayerName(i,username,sizeof(username)); printf("%s has picked up/attempted to spawn $%d.", username,hack); } } } }
|