21.12.2012, 00:27
Quote:
|
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 |
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;
}
)


