garfield

[COD]: Proibir Nicks no Servidor

Jul 9th, 2011
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.55 KB | None | 0 0
  1. /*
  2.     @Author: [iPs]SuYaNw
  3.     @Funct :  Proiba nicks indesejáveis no servidor.
  4. */
  5. #include a_samp
  6.  
  7. new
  8.     Clans[][]
  9. {
  10.     "[AVA]",
  11.     "[FeK]",
  12.     "[Fusion]",
  13.     "_"
  14.  }
  15.  
  16. public OnPlayerConnect(playerid)
  17. {
  18.     new pName[24];
  19.     GetPlayerName(playerid, pName, 24);
  20.     for(new i; i < sizeof(Clans); ++i)
  21.     {
  22.         if(!strcmp(Nome, Clans[i], true))
  23.         {
  24.             SendClientMessage(playerid, -1,"Seu Nick está proibido aqui, ou você se tem algum nome proibido");
  25.             Kick(playerid);
  26.         }
  27.     }
  28.     return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment