onplayertext
#1

pawn Code:
public OnPlayerText(playerid, text[])
{
    static string[128];
    GetPlayerName(playerid, string, MAX_PLAYER_NAME); // fix name
    format(string, sizeof(string),"{FFDC00}[%d] {%06x}%s:{FFFFFF} %s",playerid, GetPlayerColor(playerid), string,text); // fix colour :d
    SendClientMessageToAll(GetPlayerColor(playerid),string);
    return 0;
}
this is the code to put player id in yellow behind a players name when he says something.. its not working for my server

also yes i have the fix for the GetPlayerColor
Reply


Messages In This Thread
onplayertext - by spd_sahil - 11.04.2012, 13:29
Re: onplayertext - by emokidx - 11.04.2012, 13:51
Re: onplayertext - by Cjgogo - 11.04.2012, 13:53
Re: onplayertext - by ViniBorn - 11.04.2012, 14:38

Forum Jump:


Users browsing this thread: 5 Guest(s)