Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3. #include <cstrike>
  4.  
  5. public OnPluginStart() {
  6. HookEvent("player_connect", PlayerConnect);
  7. }
  8.  
  9. public Action:PlayerConnect(Handle:event, const String:name[], bool:dontBroadcast) {
  10. new client = GetClientOfUserId(GetEventInt(event, "userid"))
  11. decl String:nome[65];
  12. GetClientName(client, nome, sizeof(nome));
  13. new String:invalid[][] = { "%", "&", "‡", "‰", "Š", "Œ", "š", "œ", "Ÿ", "¡" ,"Ð", "¢", "£", "¤", "¥", "§", "", "¯", "°", "±", "", "µ", "¶", "·", "¸", "¼", "½", "¾", "¿", "", "Å", "Æ", "×", "Ø", "Þ", "ß", "å", "æ", "ç", "ð", "÷", "ø", "þ", "ÿ", "€" };
  14.  
  15. for(new i = 0; i <= 42; i++){
  16. if(StrContains(nome, invalid[i], false) != -1) {
  17. ServerCommand("kickid %i your nick contain invalid characters", GetEventInt(event, "userid"));
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement