Advertisement
Voke_Bass

Anti-System Advertiser protection [UPDATED 2020-12-17]

Jun 24th, 2019 (edited)
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.53 KB | None | 0 0
  1. //Updated 2020-12-17 | Rewiews: 143
  2. //Created by Vok3 | more: https://pastebin.com/u/Voke_Bass
  3.  
  4. new ServerNames[][100] = { "www.sa-mp.com", "sa-mp.com", "sa - mp.com" };
  5.  
  6. public OnPlayerText(playerid)
  7. {
  8.     for(new tncc = 0; tncc < sizeof(ServerNames); tncc++)
  9.     {
  10.         if(strfind(text, ServerNames[tncc], true) != -1)
  11.         {
  12.             new String[150];
  13.             format(String, sizeof(String), "[Anti-Cheat] Player %s was kicked out of the server!", /*GetPlayerName*/);
  14.             SendClientMessageToAll(-1, String);
  15.  
  16.             Kick(playerid);
  17.         }
  18.     }
  19.     return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement