Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //Adauga la OnDialogResponse
  2. {
  3. for(new i; i < sizeof(antisqlinjection); i++)
  4. {
  5. if(strfind(inputtext, antisqlinjection[i], true) != -1)
  6. {
  7. return 1;
  8. }
  9. if(strfind(inputtext, "%", true) != -1)
  10. {
  11. new flooder[MAX_PLAYER_NAME];
  12. new string10[100];
  13. GetPlayerName(playerid, flooder, sizeof(flooder));
  14. format(string10, sizeof(string10), "Kick: %s has been kicked by AdmBot, reason: Probably flood", flooder, playerid);
  15. SendClientMessageToAll(COLOR_LIGHTRED, string10);
  16. KickEx(playerid);
  17. return 1;
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement