SA-MP Forums Archive
Changing 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: Changing colors (/showthread.php?tid=423685)



Changing colors - Jamch - 18.03.2013

Hello. im just wondering When a cop does /suspect.

the suspcet's name turns yellow. How can i remove that?
and when he logs back on he is still Yellow.


Re: Changing colors - kamzaf - 18.03.2013

try and find SetPlayerColor in the /suspect cmd and remove it,


Re: Changing colors - Jamch - 18.03.2013

No luck in the Setplayercolor

but i found this SetPlayerCriminalEx(giveplayerid,playerid, result);


Re: Changing colors - kamzaf - 18.03.2013

can you please give the function for that.


Re: Changing colors - Jamch - 18.03.2013

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/su)spect [playerid/PartOfName] [crime text]");
return 1;
}
if(IsACop(giveplayerid))
{
if(PlayerInfo[playerid][pRank] >= 6)
{
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 6; }
else { WantedPoints[giveplayerid]+= 2; }
SetPlayerCriminalEx(giveplayerid,playerid, result)


Re: Changing colors - kamzaf - 18.03.2013

No i mean the code for SetPlayerCriminalEx, cause obv that is not a regular function.


Re: Changing colors - Jamch - 18.03.2013

Nevermind! I found setplaycolor and deleted it. tested it and it worked thanks!!!


Re : Changing colors - morocco - 18.03.2013

like this ? http://pastebin.com/yXLN1GK3