Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (
/showthread.php?tid=266347)
Help -
Dan_Barocu - 04.07.2011
hi i want each faction to have diffrecnt colours (ex:
Dan_Barocu is in faction yakuza) im from diffrect coountry i hope you get it!!
Re: Help -
Mr L - 04.07.2011
You mean all the faction to have other colors? like the yellow dan_Barocu for yakuza..
Re: Help -
Dan_Barocu - 04.07.2011
like that plz
where do i edit in in the (Gm)?
Re: Help -
Dan_Barocu - 04.07.2011
can someone help me
?
Re: Help -
Skaizo - 04.07.2011
SetPlayerColor
Like this:
Код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 1)
{
gTeam[playerid] = TEAM_POLICE;
}
if(classid == 2)
{
gTeam[playerid] = TEAM_MAFIA;
}
}
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_POLICE)
{
SetPlayerColor(playerid, COLOR_AQUA);
}
else if (gTeam[playerid] == TEAM_MAFIA)
{
SetPlayerColor(playerid, COLOR_BROWN);
}
}