SA-MP Forums Archive
NOW NEED SOMETHING - 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: NOW NEED SOMETHING (/showthread.php?tid=606452)



NOW NEED SOMETHING - RedRex - 04.05.2016

Ok guys I Really need a Good Tutorial For how to use Checkpoint i check some one but its " OnPlayerSpawn " and i want OnGameModeInit or OnPlayerConnect Plesae Give me a good Tutorial


Re: NOW NEED SOMETHING - kaisersouse - 04.05.2016

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint

http://forum.sa-mp.com/forumdisplay.php?f=70


Re: NOW NEED SOMETHING - RedRex - 04.05.2016

Quote:
Originally Posted by kaisersouse
View Post
Look If i use OnPlayerSpawn its will be in map i want When im near it Show me it !


Re: NOW NEED SOMETHING - kaisersouse - 04.05.2016

https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint

Make a timer that uses that^ to check players distance from where the CP would be. Once they are within certain range, call a function that shows the CP to the player. When they are out of range, call a function that removes the CP for the player


Re: NOW NEED SOMETHING - N0FeaR - 04.05.2016

You should use streamer with CreateDynamicCP


Re: NOW NEED SOMETHING - RedRex - 04.05.2016

Quote:
Originally Posted by N0FeaR
View Post
You should use streamer with CreateDynamicCP
ok i will but how to use CreateDynamicCP


Re: NOW NEED SOMETHING - N0FeaR - 04.05.2016

Use this plugin https://sampforum.blast.hk/showthread.php?tid=102865

PHP Code:
CreateDynamicCP(Float:xFloat:yFloat:zFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_CP_SDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1); 



Re: NOW NEED SOMETHING - RedRex - 04.05.2016

ty both i rep u