SA-MP Forums Archive
Setting like some spawns - 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: Setting like some spawns (/showthread.php?tid=422638)



Setting like some spawns - Duzzify - 14.03.2013

Hey!

I'm making my first stunt server! And i'm testing it a little, but i want the players to only spawn at lv,sf,ls nothing else. But like sometime when i die i spawn in lv casino shit, like how do i make so the players ONLY spawn at lv/Sf/ls airport?

I got all the coords and stuff so dont need to teach me that

also! when you start it like so you only can choose skin 0 (CJ), how do i make so you can choose what skin u want?

wish me luck with my server


Re: Setting like some spawns - Duzzify - 14.03.2013

is it hard?


Re: Setting like some spawns - Duzzify - 14.03.2013

hello?


Re: Setting like some spawns - B-Matt - 14.03.2013

Check OnPlayerSpawn callback. There should be your problem.


Re : Setting like some spawns - thegreathom - 14.03.2013

Hello,
Quote:

also! when you start it like so you only can choose skin 0 (CJ), how do i make so you can choose what skin u want?

You know you change add more skins in your scripts, just need to add the skins id's if you don't know use the wiki-samp(https://sampwiki.blast.hk/wiki/Skins:All) when you will have the id's of your skins go to samp_debug. this programs is in your GTA:SA folders, then go at the position you want the players spawn and type
Код:
/save
this commands will save your position you can also find this positions at your
Код:
GTA User Files => SAMP => savedpositions.txt
You will have a code like that one :
pawn Код:
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
// 0 = CJ Skins, 1958.3783, 1343.1572, 15.3746= Coordinates where he will spawn..
Sorry for the bad english ^^.


Re: Setting like some spawns - freddy smyth - 14.03.2013

These are some of the basic elements of scripting. I'd suggest you read up on some of the basics before you go ahead and script a full stunting server.

Good luck!