Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CallBack:: AntiCheatUpdate()
- {
- new playerid;
- new slot = GetMaxPlayers();
- while(slot--)
- {
- if(IsPlayerConnected(slot) && !IsPlayerAdmin(slot) && !MinigunGranted[playerid])
- {
- new pName[MAX_PLAYER_NAME];
- new ArmaNome[17];
- GetPlayerName(slot, pName, sizeof(pName));
- switch(GetPlayerWeapon(slot))
- {
- case 35: ArmaNome = #Rocket Launcher;
- case 36: ArmaNome = #Bazuca;
- case 37: ArmaNome = #Lança Chamas;
- case 38: ArmaNome = #Minigun;
- case 39: ArmaNome = #Satchel Charge;
- case 40: ArmaNome = #Detonador;
- case 44: ArmaNome = #Visão Noturna;
- case 45: ArmaNome = #Visão Termal;
- case 18: ArmaNome = #Molotov Cocktail;
- case 17: ArmaNome = #Bomba de Gás;
- default: goto stop;
- }
- format(String,128,"[ANTI-CHEAT]: %s Foi kickado por puxar uma arma no sobeit:[ %s ]",pName,ArmaNome);
- SendClientMessageToAll(0xFF8040AA,String);
- Kick(slot);
- stop:
- }
- }
- return 1;
- }
- new bool:MinigunGranted[MAX_PLAYERS];//topo do GM
- MinigunGranted[playerid] = false;
- MinigunGranted[playerid] = true;
Advertisement
Add Comment
Please, Sign In to add comment