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



Scripting problem. - Kemofarfar - 23.10.2011

Hey, me and my homie are setting up a server soon, dm server to be exact, but at the time, we're having a little issue with the script. Its a TDM / minigame server, and when you join, maps are going around, so when the player connects, how do you make sure that he connects to the place where the others players are, instead of spawning at one of the 10other maps :O ?

Thanks.


Re: Scripting problem. - rangerxxll - 23.10.2011

Get the coordinates for the location you want the player to spawn, and under
pawn Код:
public OnPlayerSpawn
, make a
pawn Код:
SetPlayerPos(playerid, coords);



Re: Scripting problem. - Dr4mX123 - 23.10.2011

ouжio


Re: Scripting problem. - DaRkAnGeL[NBK] - 23.10.2011

lmfao i suggest learning to script before trying to script minigames and other more complex things with your "homie"


Re: Scripting problem. - Zonoya - 23.10.2011

its easy u need some map variables for each map so it sets them to the map ur playing