Quote:
Originally Posted by stabker
Try it:
Next code put into OnPlayerConnect:
pawn Код:
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); if(!(name[0] >= 'A' && name[0] <= Z && strfind(name, "_") != -1 && strfind(name, "_")+1 <= strlen(name) && name[strfind(name, "_")+1] >= 'A' && strfind(name, "_")+1 <= 'Z')) { SendPlayerMessage(playerid, -1, "Use RP nick! Example: Carl_Johnson, Stabker_Steepson"); Kick(playerid); return 1; }
(I dont test it, just write per few minutes. Sorry for my bad English  )
|
He wants to do the opposite of that. He wants people to use ANY name instead of RP names on his rp server, which I find weird.