[HELP] OnPlayerConnect! - 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: [HELP] OnPlayerConnect! (
/showthread.php?tid=346490)
[HELP] OnPlayerConnect! -
Oscii - 28.05.2012
Hello..
Im trying to make a command for when someone connects and they havnt spawned there SetPlayerColor to Grey and when they have spawned their color is normal..?
If this is possible?
Re: [HELP] OnPlayerConnect! -
FalconX - 28.05.2012
Quote:
Originally Posted by Oscii
Hello..
Im trying to make a command for when someone connects and they havnt spawned there SetPlayerColor to Grey and when they have spawned their color is normal..?
If this is possible?
|
Yes just use
pawn Код:
SetPlayerColor( playerid, 0x808080FF ); // change 0x808080FF if you want (it's gray) and put this in Onplayerconnect
and use your own colour on OnPlayerSpawn
pawn Код:
SetPlayerColor( playerid, YOUR_COLOR ); // On Onplayerspawn
and you are done
-FalconX
Re: [HELP] OnPlayerConnect! -
Oscii - 28.05.2012
Ohhh i see!
Thank you!
+1 Rep!
Re: [HELP] OnPlayerConnect! -
pasha97 - 29.05.2012
Its the easiest thing dude!
Re: [HELP] OnPlayerConnect! -
Ballu Miaa - 29.05.2012
Quote:
Originally Posted by pasha97
Its the easiest thing dude!
|
Sometimes the most easiest thing becomes the most toughest thing on this planet. Just like giving you a birth 'You should ask your dad about it' (No Hate/Offence)
Re: [HELP] OnPlayerConnect! -
pasha97 - 29.05.2012
Quote:
Originally Posted by Ballu Miaa
Sometimes the most easiest thing becomes the most toughest thing on this planet. Just like giving you a birth 'You should ask your dad about it' (No Hate/Offence)
|
wise