SA-MP Forums Archive
Team color problem - 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: Team color problem (/showthread.php?tid=92289)



Team color problem - Goobiiify - 19.08.2009

Hello, When you select a team/class in F4 and change team. Then the name colors not changing, it's sticks to the the preview team not the new one, So If your preview team had Color red and you change to team2 that have color green it's still have Color red.

Need help, Can't figure out this on my own, Please

//Al


Re: Team colors - CAR - 19.08.2009

Do this
Код:
//OnGameModeInit

AddPlayerClassEx(teamid, modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); // Not AddPlayerClass but AddPlayerClassEx
Код:
forward SetPlayerToTeamColor;
Код:
//OnPlayerSpawn

SetPlayerToTeamColor(playerid, COLOR);



Re: Team colors - Goobiiify - 19.08.2009

Quote:
Originally Posted by CAR
Do this
Код:
//OnGameModeInit

AddPlayerClassEx(teamid, modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); // Not AddPlayerClass but AddPlayerClassEx
Код:
forward SetPlayerToTeamColor;
Код:
//OnPlayerSpawn

SetPlayerToTeamColor(playerid, COLOR);
Aight, Going to check more about that later, Anyone who have any other suggestions?