19.05.2017, 10:28
PHP код:
stock NameCheck(playerid)
{
new str[128];
new namecheck = strfind(GetName(playerid), "_", true);
if(namecheck >= 1)
{
SendClientMessage(playerid, COLOR_RED, "On United County Roleplay we operate a 'Master Account' system. In order to register an account you will need to join with a nickname(without the '_'), instead of your roleplay name.");
format(str, sizeof(str), "%s was kicked by the server for joining with a roleplay name.",GetName(playerid));
SendAdminsMessage(1, COLOR_ORANGERED, str);
KickPlayer(playerid);
}
return 1;
}