SA-MP Forums Archive
the Id Colors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: the Id Colors (/showthread.php?tid=135805)



the Id Colors - tomo523869 - 21.03.2010

How can i make the Players Color coz i have it white


Re: the Id Colors - XRVX - 21.03.2010

https://sampwiki.blast.hk/wiki/How_to_make_spawn_colors


Re: the Id Colors - bajskorv123 - 21.03.2010

SetPlayerColor(playerid, color);

Playerid - The id of the player to change the color of
Color - The id of the color (Should be in hex)


Re: the Id Colors - tomo523869 - 21.03.2010

that what im talking about


Re: the Id Colors - bajskorv123 - 21.03.2010

Quote:
Originally Posted by tomo523869
that what im talking about
Show me your whole OnPlayerText callback


Re: the Id Colors - tomo523869 - 21.03.2010

public OnPlayerText(playerid, text[])
{
if (Mute[playerid] == 1)
{
SendClientMessage(playerid, RED, "You are muted! You cannot talk.");
}
else
{
new string[256];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "[%i] %s: %s", playerid, playername, text);
SendClientMessageToAll(GetPlayerColor(playerid),st ring);
}
return 0;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
new receiver[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, player, sizeof(player));
GetPlayerName(recieverid, receiver, sizeof(receiver));
format(string, sizeof(string), "PM from [%i]%s to [%i]%s: %s",playerid,player,recieverid,receiver,text);
SendClientMessageToAdmins(LIGHTBLUE,string,1);
PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
SendClientMessage(playerid, GREEN, "Private Message Sent!");
return 1;
}



heses the whole shit http://pastebin.com/GpktiiQm


Re: the Id Colors - bajskorv123 - 21.03.2010

This part:
pawn Код:
else
{
  new string[256];
  GetPlayerName(playerid, playername, sizeof(playername));
  format(string, sizeof(string), "[%i] %s: %s", playerid, playername, text);
  SendClientMessageToAll(GetPlayerColor(playerid),string);//This row
}
Is where the error comes in, just change "GetPlayerColor(playerid)" to a hex value to change the color of the message


Re: the Id Colors - Correlli - 21.03.2010

Stop using cheats and maybe you'll get some help.


Re: the Id Colors - Guedes747 - 21.03.2010

Quote:
Originally Posted by Don Correlli
Stop using cheats and maybe you'll get some help.
LOL pwnt. Well said.


Re: the Id Colors - tomo523869 - 21.03.2010

im making my teleports so u need sobait