My GM needs spawn points
#1

Hello i'm have almost finished my GM the only thing that is annoying me are the spawn points , i want to know how to add it to my script and make many different ones example: hospital spawn point after death - and factions spawn points.
Thank you.
Reply
#2

[Stupid comment, removed.]
Reply
#3

Use SetPlayerPos in OnPlayerSpawn.
Reply
#4

i'm a beginner in scripting so i dont know alot of things , can you tell me in wich form i should write it please ?
Do i have to make different SetPlayerPos in OnPlayerSpawn then : if Fmember etc.. and i set the coord ?
Reply
#5

go in game

find a place you want to spawn for example LS? or LS Airport go there and type /save
then go in this directory C:\Users\YourUsername\Documents\GTA San Andreas User Files\SAMP open a file called
savedpositions.txt there should be a AddPlayerClass get the XYZ of that and add it to SetPlayerPos

pawn Код:
SetPlayerPos(playerid,X,Y,Z);
Reply
#6

oh thanks , it works for interiors ?
Reply
#7

SetPlayerInterior
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)