Adding names
#10

here is what i meant
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1) //Change to your admin variable
    {
        new str[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof (name));
        format(str, sizeof (str), "[ADMIN]%s: %s", name, text);
        SendClientMessageToAll( -1, str);
        return 0; // ignore the default text and send the custom one
    }

//all other players will just send as normal...
    return 1;
}
now you wont cut the name and even use inline colors if you like to stand out.
Reply


Messages In This Thread
Adding names - by BleverCastard - 25.04.2012, 21:06
Re: Adding names - by Scenario - 25.04.2012, 21:19
Re: Adding names - by Kindred - 25.04.2012, 21:21
Re: Adding names - by Jonny5 - 25.04.2012, 21:21
Re: Adding names - by ReneG - 25.04.2012, 21:24
Re: Adding names - by Jonny5 - 25.04.2012, 21:27
Re: Adding names - by BleverCastard - 25.04.2012, 21:32
Re: Adding names - by Elysian` - 25.04.2012, 21:34
Re: Adding names - by BleverCastard - 25.04.2012, 21:36
Re: Adding names - by Jonny5 - 25.04.2012, 21:47

Forum Jump:


Users browsing this thread: 4 Guest(s)