SA-MP Forums Archive
{Help} Skin - 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} Skin (/showthread.php?tid=137101)



{Help} Skin - MatthewGarrowo - 27.03.2010

can someone tell me how to make it so people on my server don't spawn as the same skin but different ones and people spawn at the hospital when they die and cop station when there arrested thank you


Re: {Help} Skin - Zimon95 - 27.03.2010

In OnPlayerSpawn callback:
pawn Код:
new rSkin = random(299);
SetPlayerSkin(playerid,rSkin);



Re: {Help} Skin - aspire5630 - 27.03.2010

Quote:
Originally Posted by Zimon95
In OnPlayerSpawn callback:
pawn Код:
new rSkin = random(299);
SetPlayerSkin(playerid,rSkin);
Should work perfectly, Use it on
pawn Код:
OnPlayerSpawn



Re: {Help} Skin - MatthewGarrowo - 28.03.2010

Nice nice if its not to much to ask how do you make it so they spawn at hospital when they die to i put the same thing in onplayerdeath? i am asking these questions because i am trying to learn more important stuff cuz i am a noob


Re: {Help} Skin - Jay420 - 28.03.2010

Quote:
Originally Posted by MatthewGarrowo
spawn at hospital when they die
Just use
pawn Код:
SetPlayerPos(playerid,0.0,0.0,0.0);//the hospital coordinates..
when the player dies, simple.



Re: {Help} Skin - MatthewGarrowo - 28.03.2010

oh so its just like when you /save in dedug and get the plyer cords nice ok i understand thanks


Re: {Help} Skin - TouR - 28.03.2010

Quote:

Just use
PAWN Code:

SetPlayerPos(playerid,0.0,0.0,0.0);//the hospital coordinates..


when the player dies, simple.

It wont work... The player will die tele at hospital and then spawn again at other place