SA-MP Forums Archive
Startup player random color's! - 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: Startup player random color's! (/showthread.php?tid=306345)



Startup player random color's! - Ballu Miaa - 26.12.2011

Hello everyone,

Everytime a player connect's to my server it has a random color even though i've added the below code under OnPlayerConnect. Please help, Will rep+!

pawn Код:
SetPlayerColor(playerid,COLOR_GREY);



Re: Startup player random color's! - §с†¶e®РµРe - 26.12.2011

does COLOR_GREY appear after spawn?
or does it change color after spawn


Re: Startup player random color's! - Ballu Miaa - 26.12.2011

Quote:
Originally Posted by §с†¶e®РµРe
Посмотреть сообщение
does COLOR_GREY appear after spawn?
or does it change color after spawn
Haardik! Come and test it? Please? U go in and see it yourself when i come in? Your registered with Admin 5 still.


Re: Startup player random color's! - eDz0r - 26.12.2011

can you rephrase the problem/question ?


Re: Startup player random color's! - Ballu Miaa - 26.12.2011

Quote:
Originally Posted by eDz0r
Посмотреть сообщение
can you rephrase the problem/question ?
Everytime a player connect's to the server, The player has random color's but i've added SetPlayerColor to grey under OnPlayerConnect function in the GM. The problem is still there?


Re: Startup player random color's! - eDz0r - 26.12.2011

look at onplayerspawn/onplayerrequestclass etc for SetPlayerColor....


Re: Startup player random color's! - Thresholdold - 26.12.2011

Did you put it under OnPlayerSpawn?


Re: Startup player random color's! - Ballu Miaa - 26.12.2011

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Did you put it under OnPlayerSpawn?
Quote:
Originally Posted by eDz0r
Посмотреть сообщение
look at onplayerspawn/onplayerrequestclass etc for SetPlayerColor....
When player spawn's It gets the Team Color assigned to the team. But when it connect's and show's a SendDeathMessage(INVALID_PLAYERID,playerid,200); It always has a random color!