SA-MP Forums Archive
where i need put this line under?? Fixed Thanks - 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: where i need put this line under?? Fixed Thanks (/showthread.php?tid=78185)



where i need put this line under?? Fixed Thanks - Derksen123 - 17.05.2009

where do i need to put this :
if(PlayerToPoint(25.0,playerid,-415.2488,-3146.3875,4.5154)
)
SetPlayerPos(playerid,-417.1043,-3153.9048,47.0001);
return 1;
}


Re: where i need put this line under?? - Weirdosport - 17.05.2009

Well you can put it wherever you want, but if you want to check when a player gets that close to the thing you need it to be in a loop that's in a timer.


Re: where i need put this line under?? - Derksen123 - 17.05.2009

where is the best place to put this than?


Re: where i need put this line under?? - Weirdosport - 17.05.2009

Well it depends what you want it to do. If you want it to check if a player is in a certain position when they type a command, you put it in the command. If you want to check if a player gets close to those co-ordinates you do as I said in the previous post. There is no best place to put it as you haven't given a context.. What do you want it to do?


Re: where i need put this line under?? - Derksen123 - 17.05.2009

i wanna add that lines to my gamemode i'v already tryed belowst of the script but gives 2 error



Re: where i need put this line under?? - Derksen123 - 18.05.2009

so do i need to add this under onplayercommand text


Re: where i need put this line under?? - Weirdosport - 18.05.2009

That script does nothing on its own, you need to explain what you're actually trying to do!


Re: where i need put this line under?? - MenaceX^ - 18.05.2009

People think these statements just need to be dropped somewhere, no matter where.