onplayertext
#2

pawn Code:
public OnPlayerText(playerid, text[])
{
    static string[128], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname)); // fix name
    format(string, sizeof(string),"{FFDC00}[%d] {%06x}%s:{FFFFFF} %s",playerid, GetPlayerColor(playerid)/* i don't get why are you using it, i never have seen nything like this, so i will leave it as it is.*/, pname,text); // fix colour :d
    SendClientMessageToAll(GetPlayerColor(playerid),string);
    return 0;
}
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: 4 Guest(s)