Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerConnect(playerid)
- {
- new plname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, plname, sizeof(plname));
- if(Security != 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
- Kick(playerid);
- return 1;
- }
- new namestring = strfind(plname, "_", true);
- if(namestring == -1)
- {
- SendClientMessage(playerid, COLOR_YELLOW2, "Imigracioni centar: Tvoje ime nije prihvatljivo.");
- SendClientMessage(playerid, COLOR_YELLOW2, "Poruka: Tvoje ime mora biti u formatu Ime_Prezime.");
- Kick(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment