[Help] Player Color
#1

fixed..
Reply
#2

PHP код:
CMD:healall(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 5)
{
SendCommandToAdmins(playerid,"HealAll");
for(new 
0MAX_PLAYERSi++)
{
if(
IsPlayerConnected(i) && (!= playerid) && != 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(0xFFFF00AAstring);
}
else return 
ErrorMessages(playerid11); 
Reply
#3

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);
Reply
#4

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)[/COLORhas healed all players
and when I set my colour to orange, how will it show up like this
PHP код:
** Administrator [COLOR="Orange"]Ken(1)[/COLORhas healed all players
Reply
#5

You should do something with this: https://sampwiki.blast.hk/wiki/GetPlayerColor

But I'm not sure about this one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)