Advertisement
ricop522

[PAWN] Nome proibido

Apr 15th, 2012
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.38 KB | None | 0 0
  1. new nomesProibidos[][] {
  2.     "aux"
  3.     // adicione mais
  4. }
  5.  
  6. public OnPlayerConnect(playerid)
  7. {
  8.     new x[24];
  9.     GetPlayerName(playerid, x, 24);
  10.     for(new i, z = sizeof(nomesProibidos); i != z; ++i) {
  11.         if(!strcmp(x, nomesProibidos[i], true)) {
  12.             SendClientMessage(playerid, -1, "Nome proibido.");
  13.             Kick(playerid);
  14.         }
  15.     }
  16.     return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement