SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/05/2016, 03:57 PM   #1
RedRex
Huge Clucker
 
RedRex's Avatar
 
Join Date: Jan 2016
Location: Portugal <3
Posts: 492
Reputation: 29
Red face NOW NEED SOMETHING

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
__________________
RedRex's Cops and Robbers
RCNR Soon
We are working on it. Just wait us!! Soon updating to hosted tap after finished.
RedRex is offline   Reply With Quote
Old 04/05/2016, 04:04 PM   #2
kaisersouse
High-roller
 
kaisersouse's Avatar
 
Join Date: Jun 2006
Location: Subaru Forester
Posts: 2,799
Reputation: 1024
Default Re: NOW NEED SOMETHING

http://wiki.sa-mp.com/wiki/Function:SetPlayerCheckpoint

http://forum.sa-mp.com/forumdisplay.php?f=70
__________________
Life is like a box of cheap-ass no cocoa garbage dollar-store chocolate.

Ban UIF
kaisersouse is offline   Reply With Quote
Old 04/05/2016, 04:07 PM   #3
RedRex
Huge Clucker
 
RedRex's Avatar
 
Join Date: Jan 2016
Location: Portugal <3
Posts: 492
Reputation: 29
Default Re: NOW NEED SOMETHING

Look If i use OnPlayerSpawn its will be in map i want When im near it Show me it !
__________________
RedRex's Cops and Robbers
RCNR Soon
We are working on it. Just wait us!! Soon updating to hosted tap after finished.
RedRex is offline   Reply With Quote
Old 04/05/2016, 04:11 PM   #4
kaisersouse
High-roller
 
kaisersouse's Avatar
 
Join Date: Jun 2006
Location: Subaru Forester
Posts: 2,799
Reputation: 1024
Default Re: NOW NEED SOMETHING

https://wiki.sa-mp.com/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
__________________
Life is like a box of cheap-ass no cocoa garbage dollar-store chocolate.

Ban UIF
kaisersouse is offline   Reply With Quote
Old 04/05/2016, 04:11 PM   #5
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Sweden
Posts: 2,308
Reputation: 167
Default Re: NOW NEED SOMETHING

You should use streamer with CreateDynamicCP
__________________
Here is my discord server https://discord.gg/ucVpDkJ
N0FeaR is offline   Reply With Quote
Old 04/05/2016, 04:15 PM   #6
RedRex
Huge Clucker
 
RedRex's Avatar
 
Join Date: Jan 2016
Location: Portugal <3
Posts: 492
Reputation: 29
Default Re: NOW NEED SOMETHING

Quote:
Originally Posted by N0FeaR View Post
You should use streamer with CreateDynamicCP
ok i will but how to use CreateDynamicCP
__________________
RedRex's Cops and Robbers
RCNR Soon
We are working on it. Just wait us!! Soon updating to hosted tap after finished.
RedRex is offline   Reply With Quote
Old 04/05/2016, 04:21 PM   #7
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Sweden
Posts: 2,308
Reputation: 167
Default Re: NOW NEED SOMETHING

Use this plugin http://forum.sa-mp.com/showthread.php?t=102865

PHP Code:
CreateDynamicCP(Float:xFloat:yFloat:zFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance STREAMER_CP_SDSTREAMER_TAG_AREA areaid STREAMER_TAG_AREA -1); 
__________________
Here is my discord server https://discord.gg/ucVpDkJ
N0FeaR is offline   Reply With Quote
Old 04/05/2016, 04:53 PM   #8
RedRex
Huge Clucker
 
RedRex's Avatar
 
Join Date: Jan 2016
Location: Portugal <3
Posts: 492
Reputation: 29
Default Re: NOW NEED SOMETHING

ty both i rep u
__________________
RedRex's Cops and Robbers
RCNR Soon
We are working on it. Just wait us!! Soon updating to hosted tap after finished.
RedRex is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.