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



Spawn points - Superthijs - 02.08.2011

Hi,
Anybody knows how to change/add spawn points?
Superthijs


AW: Spawn points - Drebin - 02.08.2011

AddPlayerClass(); ?


AW: Spawn points - samtey - 02.08.2011

Lil' Tut for u^^

1.Go into your SAMP-Debug!
2.Then go to the place, where you want player X will get spawned!
3.Type /save [your favourite name]
4. Go to your GTA SA directory and open the file savedpositions.txt!
5.Go in your script, then jump to OnGameModeInit!
6.Write AddPlayerClass(skin,x co-ordinate,y co-ordinate,z co-ordinate, weapon1,ammo,weapon2,ammo,weapon3,ammo);

Replace them! Skins = Here
Weapons = HERE

Now to savedpositions! Your co-ordinates should look like this:

10.34,13.32,23.23,23.345

(ONLY LOOK LIKE THIS, YOURS ARE DIFFERENT!)

10.34 would be x
13.32 would be y
23.23 would be z

Copy and paste them in the places I told u! Ammo can be given by typing any number! For example 50 would be set, that a player has got 50 ammo with a weapon u wrote!

Also take a look at here, please!!!
https://sampwiki.blast.hk/wiki/PAWN_tutorial


Re: Spawn points - Shockey HD - 02.08.2011

If you search around ******* (that's how i first found out) MaxedOutStudio has a good tutorial. But heres a simple tutorial.

C:\Program Files\Rockstar Games\GTA San Andreas\samp_debug.exe

Go to any place you want yourself to spawn. Type /Save <Description>

This saves a string of text in a file.

Note* <Description> can be what ever you want it to be.

Note* This saves angle too so make sure you are looking the correct way.

Next Go to My Documents\GTA San Andreas User Files\SAMP\savedpositions.txt

Go to where you see AddPlayerClass(a bunch of numbers);//<Your description>

Paste that into your gamemode under OnGameModeInt