Posts: 46
Threads: 14
Joined: Jul 2011
Reputation:
0
Hello , Ill be fast because I have to go.
For eg.
I want when someone connects to spawn randomly at the Airports
SetPlayerPos(playerid,Los Santos Airport)
etc
and..I tried but , when someone dies I want same to spawn at neareast hospital.
I think for that I have to get areas right?
Posts: 316
Threads: 0
Joined: Sep 2011
Reputation:
0
yes u have
with /save
then go to documents-gta folder- samp -savedpositions
get the x,y,z
and then create the random spawns...
Posts: 46
Threads: 14
Joined: Jul 2011
Reputation:
0
well that I know , I mean
I just put
public OnPlayerDeath
SetPlayerPos(playerid,-2424.2395,1003.6310,30.247);
SetPlayerPos(playerid,-5624.2395,6003.6310,15.5687);
SetPlayerPos(playerid,-9024.2395,853.6310,30.232);
And it will spawn randomly?
Not to the first one?
Posts: 316
Threads: 0
Joined: Sep 2011
Reputation:
0
hum
i think we cant do it onplayerdeath
cuz player will spawn and go back to normal spawn
so...the dead boolean must be OnPlayerSpawn
edit : i didnt saw varthshenon post sorry
Posts: 46
Threads: 14
Joined: Jul 2011
Reputation:
0
Thanks!
Tested & Works.
For spawning place I do the same?