Guest User

da um help aew

a guest
Nov 9th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. CallBack:: AntiCheatUpdate()
  2. {
  3. new playerid;
  4. new slot = GetMaxPlayers();
  5. while(slot--)
  6. {
  7. if(IsPlayerConnected(slot) && !IsPlayerAdmin(slot) && !MinigunGranted[playerid])
  8. {
  9. new pName[MAX_PLAYER_NAME];
  10. new ArmaNome[17];
  11. GetPlayerName(slot, pName, sizeof(pName));
  12. switch(GetPlayerWeapon(slot))
  13. {
  14. case 35: ArmaNome = #Rocket Launcher;
  15. case 36: ArmaNome = #Bazuca;
  16. case 37: ArmaNome = #Lança Chamas;
  17. case 38: ArmaNome = #Minigun;
  18. case 39: ArmaNome = #Satchel Charge;
  19. case 40: ArmaNome = #Detonador;
  20. case 44: ArmaNome = #Visão Noturna;
  21. case 45: ArmaNome = #Visão Termal;
  22. case 18: ArmaNome = #Molotov Cocktail;
  23. case 17: ArmaNome = #Bomba de Gás;
  24. default: goto stop;
  25. }
  26. format(String,128,"[ANTI-CHEAT]: %s Foi kickado por puxar uma arma no sobeit:[ %s ]",pName,ArmaNome);
  27. SendClientMessageToAll(0xFF8040AA,String);
  28. Kick(slot);
  29. stop:
  30. }
  31. }
  32. return 1;
  33. }
  34.  
  35. new bool:MinigunGranted[MAX_PLAYERS];//topo do GM
  36.  
  37. MinigunGranted[playerid] = false;
  38.  
  39. MinigunGranted[playerid] = true;
Advertisement
Add Comment
Please, Sign In to add comment