[Help] Player Color - 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)
+--- Thread: [Help] Player Color (
/showthread.php?tid=334084)
[Help] Player Color -
Neil. - 13.04.2012
fixed..
Re: [Help] Player Color -
Snir_sofer - 13.04.2012
PHP код:
CMD:healall(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 5)
{
SendCommandToAdmins(playerid,"HealAll");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerHealth(i,100.0);
}
}
new string[128];
format(string,sizeof(string),"** Administrator \"%s\" has healed all players.", pName(playerid));
return SendClientMessageToAll(0xFFFF00AA, string);
}
else return ErrorMessages(playerid, 11);
Re: [Help] Player Color -
Fires - 13.04.2012
In top:
pawn Код:
#define BLUE "{345ACF}"
#define RED "{E01B4C}"
#define WHITE "{FFFFFF}"
#define YELLOW "{F5E618}"
#define GREEN "{37DB45}"
// some color
now in the format
pawn Код:
format(string,sizeof(string),"** Administrator "YELLOW"%s(%s)"WHITE" has healed all players.", pName(playerid), playerid);
Re: [Help] Player Color -
Neil. - 13.04.2012
Quote:
Originally Posted by Fires
pawn Код:
format(string,sizeof(string),"** Administrator "YELLOW"%s(%s)"WHITE" has healed all players.", pName(playerid), playerid);
|
No, I mean if i do /setcolour (which will set the player to a new color) and if I do it to myself, For example, I set my colour to Red, then how will it show up like this
PHP код:
** Administrator [COLOR="Red"]Ken(1)[/COLOR] has healed all players.
and when I set my colour to orange, how will it show up like this
PHP код:
** Administrator [COLOR="Orange"]Ken(1)[/COLOR] has healed all players.
Re: [Help] Player Color -
AlTy - 13.04.2012
You should do something with this:
https://sampwiki.blast.hk/wiki/GetPlayerColor
But I'm not sure about this one.