OnPlayerText
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    new Str[256];
    format(Str, sizeof(Str), "%s: %s [id: %d | %s]", GetName(playerid), text, playerid, DOF2_GetString(PFile(playerid),"Tag"));
    SendClientMessageToAll(-1, Str);
    return 0;
}
How i do random color for the player name ?
Reply
#2

With a little searching I found the following:
https://sampwiki.blast.hk/wiki/ColorFix
https://sampwiki.blast.hk/wiki/GetPlayerColor

Taken from wiki:
pawn Код:
SendClientMessage(playerid, GetPlayerColor(playerid), "This is your color :)");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)