/givegunall {Command Help}
#7

Код:
// Weapon Anticheat
	    if(IsPlayerLoggedIn(playerid) && !GunsBeingRemoved[playerid] && FalseBan[playerid])
	    {
		    if(GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][0] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][1] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][2] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][3] &&
			GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][4] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][5] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][6] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][7] &&
			GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][8] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][9] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][10] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][11] && GetPlayerWeapon(playerid) != PlayerInfo[playerid][pWeapon][12] &&
			GetPlayerWeapon(playerid) != EventWep[0] && GetPlayerWeapon(playerid) != EventWep[1] && GetPlayerWeapon(playerid) != EventWep[2])
		    {
		        if(GetPlayerState(playerid) != PLAYER_STATE_EXIT_VEHICLE || GetPlayerState(playerid) != PLAYER_STATE_ENTER_VEHICLE_DRIVER || GetPlayerState(playerid) != PLAYER_STATE_ENTER_VEHICLE_PASSENGER)
		        {
		            if(GetPlayerWeapon(playerid) != 46)
		            {
				        new string[128];
						format(string, sizeof(string), "AdmInfo: %s has been banned by GOD, reason: Weapon Hacks (%s)", RPN(playerid), RWN(GetPlayerWeapon(playerid)));
		                SendClientMessageToAll(COLOR_DARKRED, string);
		                Log("logs/ban.log", string);
						// Banreason
						new file[32];
						format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
						format(string, sizeof(string), "Weapon Hacks (%s)", RWN(GetPlayerWeapon(playerid)));
						dini_Set(file, "BanReason", string);
						dini_Set(file, "BannedBy", "AutoBan");
						PlayerInfo[playerid][pBanned] = 1;
						AddBan(playerid);
						Kick(playerid);
					}
				}
		    }
	    }
	    if(GunsBeingRemoved[playerid]) GunsBeingRemoved[playerid] = 0;
	}
	return 1;

}
Reply


Messages In This Thread
/givegunall {Command Help} - by Ryan_Michael - 28.10.2012, 03:13
Re: /givegunall {Command Help} - by Laure - 28.10.2012, 03:19
Re: /givegunall {Command Help} - by Ryan_Michael - 28.10.2012, 03:24
Re: /givegunall {Command Help} - by [HK]Ryder[AN] - 28.10.2012, 03:26
Re: /givegunall {Command Help} - by Laure - 28.10.2012, 03:26
Re: /givegunall {Command Help} - by Ryan_Michael - 28.10.2012, 03:27
Re: /givegunall {Command Help} - by Laure - 28.10.2012, 03:30
Re: /givegunall {Command Help} - by Ryan_Michael - 28.10.2012, 03:34
Re: /givegunall {Command Help} - by Laure - 28.10.2012, 03:35
Re: /givegunall {Command Help} - by Ryan_Michael - 28.10.2012, 03:37

Forum Jump:


Users browsing this thread: 2 Guest(s)