SA-MP Forums Archive
Roleplay faction 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)
+--- Thread: Roleplay faction colors (/showthread.php?tid=461614)



Roleplay faction colors - xXAndreXx - 02.09.2013

Okey so i got this
Quote:

CMD:locker(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid) || PlayerInfo[playerid][pAsshole] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use command.");
if(IsACop(playerid))
{
if(!IsPlayerInRangeOfPoint(playerid, 2.2,256.2174,77.3295,1004.0344)) return SendClientMessage(playerid, COLOR_GREY, "You aren't near your locker.");
if(DayNoPD == 1) return SendClientMessage(playerid, COLOR_OOC, "You can't access your locker ((/day)).");
ShowDialog(playerid, 5);
}

So how can i make so when they go on duty they get the color blue on the TAB and in game


Re: Roleplay faction colors - Konstantinos - 02.09.2013

I guess you posted wrong command?!

Anyways, go to the command that an admin goes on duty with and set their colour to blue:
pawn Код:
SetPlayerColor( playerid, 0x0000FFFF );