03.08.2009, 13:22
I using the Pronton script, but if you wanna enter the server, you must using a firstname_lastname, but i wanna change it. But how you must do this ?
if(strfind(name,"_",true) == -1)
new playername[MAX_PLAYER_NAME],f; GetPlayerName(playerid,playername,MAX_PLAYER_NAME); if(strfind(playername,"_",true,1)!=-1) f=1; if(playername[strlen(playername)-1]=='_') f=0; for(new i=0;i<strlen(playername);i++) if((playername[i]<='9')&&(playername[i]>='0')) f=0; if(!f) { GetPlayerName(playerid, pName, sizeof(pName)); format(string2, sizeof(string2), "You have been kicked, Reason: Firstname_Lastname Format", pName); SendClientMessage(playerid, COLOR_LIGHTRED, string2); format(string3, sizeof(string3), "AdmCmd: %s was kicked by Auto Kick, reason: Firstname_Lastname Format", pName); SendClientMessageToAll(COLOR_LIGHTRED, string3); Kick(playerid); }