Help with Team 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with Team Colors (
/showthread.php?tid=78646)
Help with Team Colors -
Littleman774 - 22.05.2009
Hello again
I have searched around on the forums and the web, but I found nothing to make me smart...
So I hope you can help me with this.
I want different colors for classes, example: Cops = Blue, Ballas = Purple and so on...
I have fugured out how to make colors in the Skin Selection, here is the script:
Код:
case 33:
{
GameTextForPlayer(playerid,"~n~~n~~n~~w~Police Officers",15000,3);
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1539.8015,-1675.2411,13.5494);
SetPlayerFacingAngle(playerid, 88.0997);
SetPlayerCameraPos(playerid, 1535.0481,-1675.4333,13.3828);
SetPlayerCameraLookAt(playerid, 1539.8015,-1675.2411,13.5494);
SetPlayerColor(playerid, 0x0000BBAA);
SetPlayerTeam(playerid, 1);
ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
}
}
So basicly, I want colors for every team in my script.
Thanks!
Re: Help with Team Colors -
[HiC]TheKiller - 22.05.2009
pawn Код:
//OnPlayerSpawn
if(/*TEAM VARIABLE*/ == /*Team*/)
{
SetPlayerColor(playerid, COLOR);
}
Re: Help with Team Colors -
Littleman774 - 22.05.2009
Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
//OnPlayerSpawn
if(/*TEAM VARIABLE*/ == /*Team*/) { SetPlayerColor(playerid, COLOR); }
|
Thanks