Guest User

Untitled

a guest
Jun 1st, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3. new plname[MAX_PLAYER_NAME];
  4. GetPlayerName(playerid, plname, sizeof(plname));
  5. if(Security != 0)
  6. {
  7. SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
  8. Kick(playerid);
  9. return 1;
  10. }
  11. new namestring = strfind(plname, "_", true);
  12. if(namestring == -1)
  13. {
  14. SendClientMessage(playerid, COLOR_YELLOW2, "Imigracioni centar: Tvoje ime nije prihvatljivo.");
  15. SendClientMessage(playerid, COLOR_YELLOW2, "Poruka: Tvoje ime mora biti u formatu Ime_Prezime.");
  16. Kick(playerid);
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment