Color On Connect - 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: Color On Connect (
/showthread.php?tid=324591)
Color On Connect -
[sFx]BlueSmoke - 10.03.2012
How can me do to all player who conncet to my server to have only this color: {00C0FF} | {F81414} | {F3FF02} | => {00C0FF}=Light Blue | {F81414} = Red | {F3FF02} = Yellow | Yes, romania colorz
How can me do this?
Re: Color On Connect -
SsHady - 10.03.2012
//On The top Of your script
Код:
new Colors[] =
{
0x00C0FFFF, // Color1
0xF81414FF, // Color2
0xF3FF02FF, // Color3
0x00C0FFFF
0xF81414FF
0xF3FF02FF
};
//on OnplayerConnect
Код:
new randomcolors = random(sizeof(Colors));
SetPlayerColor(playerid, Colors[randomcolors]);
Rep me If it Worked