Need help with spawn points (not random) - 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: Need help with spawn points (not random) (
/showthread.php?tid=268802)
Need help with spawn points (not random) -
trapped1 - 13.07.2011
So hello, I'm in big trouble... I need help with spawn points... I don't need random spawn points.. I have 12 gangs so I the problem starts with spawning each gang in another spawns... Like 12 spawn points for each gang... (I have all cords and all stuff.. but can get them spawn like I want... Please help me if you have some time... Thank you for your replay and have a nice night/day)..
Your Trapped...
Re: Need help with spawn points (not random) -
[MG]Dimi - 13.07.2011
Add Player Class might work as you wanted but I don't know if you want random spawns inside gangs. Like each gang has few spawns and server randomly choose one of them. In that way you can try SetPlayerPos under OnPLayerSpawn callback
Re: Need help with spawn points (not random) -
trapped1 - 13.07.2011
Thanks for your time.. No I just want have players spawning in each gang spawn .. Like I have a lot of same skin ids... but just I don't know it will work as a same.. So I don't want to use Random Spawn stuff..
Re: Need help with spawn points (not random) -
[MG]Dimi - 13.07.2011
Nah use this:
PHP код:
#include <a_samp>
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid) == 128[use your own skin IDs here))
{
SetPlayerPos(playerid,x,y,z);
return 1;
}
return 1;
}