SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 24/07/2009, 07:32 PM   #1
Quead
Little Clucker
 
Join Date: Jul 2009
Posts: 29
Reputation: 0
Default Checkpoint Help

hi, how can i do when someone enter into a checkpoint appear next one spawn

sorry for my bad english
Quead is offline  
Old 24/07/2009, 08:31 PM   #2
saiberfun
High-roller
 
saiberfun's Avatar
 
Join Date: Nov 2008
Location: Germany
Posts: 3,302
Reputation: 383
Default Re: Checkpoint Help

just do
pawn Code:
public OnPlayerEnterRaceCheckpoint(playerid)
{
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
return 1;
}
if u awnt more checkpoints i guess u need a variable for that^^
__________________
saiberfun is offline  
Old 24/07/2009, 09:31 PM   #3
Quead
Little Clucker
 
Join Date: Jul 2009
Posts: 29
Reputation: 0
Default Re: Checkpoint Help

can you give me an example with more checkpoints ?
Quead is offline  
Old 24/07/2009, 11:05 PM   #4
saiberfun
High-roller
 
saiberfun's Avatar
 
Join Date: Nov 2008
Location: Germany
Posts: 3,302
Reputation: 383
Default Re: Checkpoint Help

hmm i dunno if theres an easier idea but mine is pretty advanced
pawn Code:
//Ontopofscript
new checkpoint;

//sumwhere
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(checkpoint == 0)
{
DisablePlayerCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
checkpoint = 1;
}
else
if(ckeckpoint == 1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,urnext checkpoint blah);
checkpoint = 2;
}
else
if(checkpoint == 2)
{
DisablePlayerCheckpoint(playerid);
endrace;//you would need to make that function first
checkpoint = 0;
}
return 1;
}
__________________
saiberfun is offline  
Old 25/07/2009, 12:48 AM   #5
Quead
Little Clucker
 
Join Date: Jul 2009
Posts: 29
Reputation: 0
Default Re: Checkpoint Help

thank you
Quead is offline  
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
checkpoint Brian_Furios Help Archive 7 16/03/2010 06:18 PM
Checkpoint Bug!Help please! [MWR]Blood Help Archive 0 06/03/2010 12:28 PM
Checkpoint Bug?? [MWR]Blood Help Archive 2 04/03/2010 12:02 PM
Checkpoint Chrham_2 Help Archive 2 25/02/2010 07:24 PM
Checkpoint Emrets61 Help Archive 5 29/03/2009 09:39 PM


All times are GMT. The time now is 09:24 AM.


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