28.10.2012, 18:24
i have an anti cheat system that was working perfectly but suddenly the anti money cheat does no longer works can someone help me please? notice that i use YSI to save Cash
Here is the code:
Here is the code:
Код:
public OnPlayerUpdate(playerid) { if(GetPlayerMoney(playerid) > PlayerInfo[playerid][pCash] || GetPlayerMoney(playerid) < PlayerInfo[playerid][pCash]) { GivePlayerMoney(playerid,PlayerInfo[playerid][pCash] - GetPlayerMoney(playerid)); return 1; } new armedweapon = GetPlayerWeapon(playerid); new Name[MAX_PLAYER_NAME],string[128]; GetPlayerName(playerid,Name,sizeof(Name)); if(armedweapon == 38) { if(PlayerInfo[playerid][pAdmin] < 1) { format(string,sizeof(string),"AdmCmd: %s was banned by the server, Reason: Minigun Cheats",Name); SendClientMessageToAll(COLOR_RED1,string); BanEx(playerid,"Minigun Cheats"); } } return 1; }