it is possible ??? -
[Lsrcr]Rafa - 08.09.2010
guys its possible with one command exsample: "/oncheck"
to turn on all check points on my server

o_0
if its possibe please post the pawn code here.
Thanks.
Re: it is possible ??? -
Nero_3D - 08.09.2010
Thats not possible since a player can only have one checkpoint at the same time
Re: it is possible ??? -
[Lsrcr]Rafa - 08.09.2010
hmm i can't understand that can u explain i realy i want to have more checkpoints but i dont know how to add
(omg) please make some check points in any locations anywhere.....
PLEASE.. !
Re: it is possible ??? -
LarzI - 08.09.2010
Use a checkpoint streamer plugin/fs or stream them manually by doing distance checks and timers.
Re: it is possible ??? -
[Lsrcr]Rafa - 08.09.2010
ok dude i know i need to use streamer but dont know how omfg :S
please show me just post some pawno code here please

just post with 3 or 2 locations to see... i realy don't know how !
Re: it is possible ??? -
LarzI - 08.09.2010
I recommend searching through the filterscripts/includes section for a streamer.
I don't stream alot checkpoints myself, so I cba to use a streamer plugin/include, so I do it "manually" my own way.
My way, is by using a timer (or OnPlayerUpdate) and constantly checking if player is i.e. 50 units close to a checkpoint location, then I set it for the player. If he's not, no checkpoints set (aka, all removed)
If you want me to show an example of this, I will.
Re: it is possible ??? -
[Lsrcr]Rafa - 08.09.2010
yes please

Thanks dude !
Re: it is possible ??? -
LarzI - 08.09.2010
Let's use OnPlayerUpdate as an example, as it's called LOTS of times each second.
OnPlayerUpdate:
pawn Код:
public OnPlayerUpdate(playerid)
{
if( IsPlayerInRangeOfPoint( playerid, 40.0, 0.0, 0.0, 0.0 )) //40.0 is the range, and the 3x 0.0 is the coords
SetPlayerCheckpoint( playerid, 0.0, 0.0, 0.0, 1.5 )) //Again, 0.0 = coords, and 1.5 is the size if the cp (if you don't know that already)
else if( IsPlayerInRangeOfPoint( playerid, 40.0, 1.0, 1.0, 1.0 )) //other location
SetPlayerCheckpoint( playerid, 1.0, 1.0, 1.0, 1.5 )) //checkpoint
//continue if more checkpoints ...
return true;
}
Remember that the coords used in the IsPlayerInRangeOfPoint function
should be equal to the checkpoint's coords.
OnPlayerEnterCheckpoint:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if( IsPlayerInRangeOfPoint( playerid, 1.5, 0.0, 0.0, 0.0 )) //Range shouldn't be much more than the size of the checkpoint, but it doesn't matter too much. Just remember to keep it around the same as size
{
//Do stuff you want, when player enters checkpoint
}
else if( IsPlayerInRangeOfPoint( playerid, 1.5, 1.0, 1.0, 1.0 )) //other cp
{
//Do other stuff
}
return true;
}
That's how I do it.
But remember: If you're going to use
alot of checkpoints, I recommend using a streamer, as it's probably faster and better.
Re: it is possible ??? -
[Lsrcr]Rafa - 08.09.2010
ok ill try this
btw i want to use some not that much checkpoints
about 10 or 15 checkpoints ...

and for what is that range

?
Re: it is possible ??? -
LarzI - 08.09.2010
Then you can probably use "my way"..