PDA

View Full Version : How I can do this?


TheDiscussionCafe
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?

Niko_boy
28/04/2012, 07:10 AM
ther eis a tutorial for that
http://forum.sa-mp.com/showthread.php?t=336052

[HiC]TheKiller
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] == ' ';
i++;
}
return pname;
}
Something like that would work.