How I can do this? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How I can do this? (
/showthread.php?tid=337864)
How I can do this? -
TheDiscussionCafe - 28.04.2012
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?
Re: How I can do this? -
Niko_boy - 28.04.2012
ther eis a tutorial for that
https://sampforum.blast.hk/showthread.php?tid=336052
Re: How I can do this? -
[HiC]TheKiller - 28.04.2012
pawn Код:
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.