SA-MP Forums Archive
SPAWN problem - 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 problem (/showthread.php?tid=499880)



SPAWN problem - Salman1700 - 10.03.2014

How to i set my spawn where i want it?


Re: SPAWN problem - StuartD - 10.03.2014

Look for AddPlayerClass in your script, or just add a setplayerpos.

https://sampwiki.blast.hk/wiki/AddPlayerClass
https://sampwiki.blast.hk/wiki/SetPlayerPos


Re: SPAWN problem - Salman1700 - 10.03.2014

where to add this?


Re: SPAWN problem - Macronix - 10.03.2014

AddPlayerClass is added under OnGameModeInit and SetPlayerPos depends on how you want it, for example in a command.


Re: SPAWN problem - Salman1700 - 10.03.2014

can you give me the CODE i need copy and paste thanks


Re: SPAWN problem - Macronix - 10.03.2014

Here:

Код:
AddPlayerClass(skin_id, spawn_x, spawn_y, spawn_z, facing_angle, weapon_1, weapon_1_ammo, weapon_2, weapon_2_ammo, weapon_3, weapon_3_ammo);

//In OnGameModeInit:
// People can spawn with either the CJ skin or The Truth skin.
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
Next time, try to do it on your own ...


Re: SPAWN problem - Salman1700 - 10.03.2014

Thanks works but WHEN im driving in car then peoples get crashed any idea?


Re: SPAWN problem - Equuuuin0X - 10.03.2014

Did he crashed when about to spawn, or when about to teleport to a place ?


Re: SPAWN problem - Salman1700 - 10.03.2014

when get the car then PEOPLES SAY LAGS AND CRASHED HIS GAME