How to make when player is admin to have [PREFIX] in the chat ?
#1

How to make that ?
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerInfo[playerid][pAdminLevel] >= 1)
    {
   
        new String[128],
            name[MAX_PLAYER_NAME]
        ;
        format(String, sizeof(String), "[PREFIX] %s: %s", name, text);
        SendClientMessageToAll(0xFFFFFFF, String);
        return 1;
    }
    return 0;
}
There you go my friend.
Reply
#3

When i send message it looks:
[Owner]bustern:Hi
bustern:Hi
Why two times ?
Reply
#4

Change that "return 1;" with "return 0;"
Reply
#5

^ this sorry. and change prefix to [OWNER]
Reply
#6

I made that for 6 lvs admin thx you !
Reply
#7

You're welcome. You could do it so all your admins have a prefix in chat, if you want help with it, let me know.
Reply
#8

But now normal players cant chat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)