SA-MP Forums Archive
Spawn help - 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: Spawn help (/showthread.php?tid=502522)



Spawn help - lulo356 - 24.03.2014

If you registrate your self, you get the CJ skin, but i dont know how to fix that, or what the code from it is, can you help me out?


You get a +rep


Re: Spawn help - CroM256 - 24.03.2014

If you let player to choose skins then you have to add more skins on OnGameModeInit with AddPlayerClass https://sampwiki.blast.hk/wiki/AddPlayerClass
If you want set 1 skin for all player on register then find register dialog id on OnPlayerConnect and give us code for that dialog from OnDialogResponse


Re: Spawn help - lulo356 - 25.03.2014

What do i need to send?


Re: Spawn help - FrakyX - 25.03.2014

you need to change the id on default it is CJ skin change the id and put the skin id you wish to spawn. You can see all skin ids here:- https://sampwiki.blast.hk/wiki/Skins:All


Re: Spawn help - lulo356 - 25.03.2014

Sorry, but i dont know where i can change it, please help me again,

For the guys that helped me already, a +REP, Thanks for trying to help me


Re: Spawn help - ChandraLouis - 25.03.2014

What skin do you want ?
AddPlayerClass(SKIN_HERE, Float:X_HERE, Float:Y_HERE, Float:Z_HERE,Float: Angle_HERE, Weapon1, Ammo1, Weapon2, Ammo2, Weapon3, Ammo3);
or do /save In-Game


Re: Spawn help - lulo356 - 25.03.2014

Okay, i did AddPlayerClass(137, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);

But still, if you registrate you get CJ even if you registrate as a female


Re: Spawn help - ChandraLouis - 25.03.2014

show me your code on pastebin pm me the link


Re: Spawn help - JoanB - 25.03.2014

Okey try this out look what i did type in there! i
Quote:

public OnGameModeInit()
{
// Remember to change the SKIN ID and remember to change the location where to spawn like where it says //1958.33, 1343.12, And all that get the location numbers and then you put it there.
AddPlayerClass(FIND THE SKIN ID AND PUT IT IN HERE, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
return 1;
}