How I can do this?
#1

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?
Reply
#2

ther eis a tutorial for that
https://sampforum.blast.hk/showthread.php?tid=336052
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)