GetPlayerColor - 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: GetPlayerColor (
/showthread.php?tid=423096)
GetPlayerColor -
Blackazur - 16.03.2013
Hello, i have an Problem how to make that the Playername also "%s" are screened in the normal Playercolor which is setted with "SetPlayerColor" because the Playername is now too with this Color: {B2FFFF}
Код:
if(pInfo[playerid][pVipLevel] >= 1)
{
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername)); {}
format(string, sizeof(string), "{B2FFFF}[VIP] %s: {FFFFFF}%s ",playername, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
Re: GetPlayerColor - Patrick - 16.03.2013
i cant think of any idea. so i experimented this code. and it compiles fine. but i didn't tried the code. so you can try this if this works. please reply back
pawn Код:
#define COLOR_VIP "{B2FFFF}"
#define COLOR_WHITE "{FFFFFF}"
new IsVIP[] = ""COLOR_VIP"[VIP]";
//
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
//
if(pInfo[playerid][pVipLevel] >= 1)
{
format(string, sizeof(string), "%s %s (%d): "COLOR_WHITE"%s ",IsVIP,playername,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
AW: GetPlayerColor -
Blackazur - 16.03.2013
Thanks, but now how to make it that the Playerid is too screened?
Re: GetPlayerColor - Patrick - 16.03.2013
Quote:
Originally Posted by Blackazur
Thanks, but now how to make it that the Playerid is too screened?
|
Edited my code above. try it out.
Re: GetPlayerColor -
Denying - 16.03.2013
What do you mean by "screened"?
EDIT: nevermind.
Re: GetPlayerColor - Patrick - 16.03.2013
Quote:
Originally Posted by Denying
What do you mean by "screened"?
EDIT: nevermind.
|
for me as i understand about
screened
it like mean's
show on screen
Re: GetPlayerColor -
Vince - 16.03.2013
pawn Код:
format(string, sizeof(string), "{B2FFFF}[VIP] {%06x}%s: {FFFFFF}%s ", GetPlayerColor(playerid) >>> 8, playername, text);