GetPlayerColor
#1

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;
}
Reply
#2

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;
}
Reply
#3

Thanks, but now how to make it that the Playerid is too screened?
Reply
#4

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.
Reply
#5

What do you mean by "screened"?

EDIT: nevermind.
Reply
#6

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
Reply
#7

pawn Код:
format(string, sizeof(string), "{B2FFFF}[VIP] {%06x}%s: {FFFFFF}%s ", GetPlayerColor(playerid) >>> 8, playername, text);
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)