View Full Version : How I can do this?

28/04/2012, 07:05 AM
i have roleplay server. people register, they have to have firstname_lastname format. if not they get kicked. okay hi can i make so when anytime player says message in chatbox for anything or any reason, the player name will not have "_" in the chat. for example: Mike_Hawk but in chat his name show up as Mike Hawk. how i can do that for every command like /me or /do or /ooc like that?

28/04/2012, 07:10 AM
ther eis a tutorial for that

28/04/2012, 07:11 AM
stock RemoveUnderscores(id)
new pname[24], i;
GetPlayerName(playerid, pname, 24);
while(pname[i] != 0)
if(pname[i] == '_') pname[i] == ' ';
return pname;
Something like that would work.