Advertisement
Rei_Ayanami

LockOn

Jul 2nd, 2021
1,468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. //Sistema de Anti-Lock ON "Samp-Laucher"
  2. //Add Include "LockOn"
  3.  
  4. #include <a_samp>
  5. #include <lockon>
  6.  
  7. #define funcao%0(%1) \
  8. forward%0(%1); public%0(%1)
  9.  
  10. #define Vermelho 0xFF0000C8
  11. #define SCMToAll SendClientMessageToAll
  12. #define DIALOG_LOCKON (0)
  13.  
  14. public OnFilterScriptInit()
  15. {
  16. print("Carregando Lock-On");
  17. return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22. return 1;
  23. }
  24.  
  25. stock KickDelay(playerid)
  26. {
  27. SetTimerEx("KickMe", 1000, false, "d", playerid);
  28. return 1;
  29. }
  30.  
  31. public OnPlayerConnect(playerid)
  32. {
  33. new Detect[150];
  34. if(PlayerMobileInfo[playerid][isHaveAutoaim] == true)
  35. {
  36. format(Detect, sizeof(Detect), "[Anti-Lock-On] {ffffff}%s {ff2400}foi kickado automaticamente!", pNome(playerid));
  37. SCMToAll(Vermelho,Detect);
  38. KickDelay(playerid);
  39. }
  40. return 1;
  41. }
  42.  
  43. public OnPlayerDisconnect(playerid, reason)
  44. {
  45. return 1;
  46. }
  47.  
  48. stock pNome(playerid)
  49. {
  50. new GetNome[24];
  51. GetPlayerName(playerid, GetNome, 24);
  52. return GetNome;
  53. }
  54.  
  55. funcao KickMe(playerid)
  56. {
  57. return Kick(playerid);
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement