RP NAMES QUESTION
#4

Quote:
Originally Posted by geohareas
Посмотреть сообщение
Hello there,

I wanted to ask you,how can i let the players using their names instead of the RP names on a roleplaying gamemode (ex. Ravens Roleplay 0.3e)

Thanks in advance,i appreaciate that you read my topic!

Best regards,
George
Try it:
Next code put into OnPlayerConnect:

pawn Код:
new name[MAX_PLAYER_NAME], pos = strfind(name, "_");
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
if(pos == -1 || !(name[0] >= 'A' && name[0] <= 'Z' && pos+1 < strlen(name) && name[pos+1] >= 'A' && name[pos+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 )
Reply


Messages In This Thread
RP NAMES QUESTION - by geohareas - 20.12.2012, 16:53
Re: RP NAMES QUESTION - by park4bmx - 20.12.2012, 19:59
Re: RP NAMES QUESTION - by Randy More - 20.12.2012, 22:53
Re: RP NAMES QUESTION - by stabker - 21.12.2012, 00:27
Re: RP NAMES QUESTION - by EAsT-OAK_510 - 21.12.2012, 00:30
Re: RP NAMES QUESTION - by stabker - 21.12.2012, 00:32
Re: RP NAMES QUESTION - by EAsT-OAK_510 - 21.12.2012, 00:34
Re: RP NAMES QUESTION - by dannyk0ed - 21.12.2012, 01:26

Forum Jump:


Users browsing this thread: 2 Guest(s)