it is possible ???
#1

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.
Reply
#2

Thats not possible since a player can only have one checkpoint at the same time
Reply
#3

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.. !
Reply
#4

Use a checkpoint streamer plugin/fs or stream them manually by doing distance checks and timers.
Reply
#5

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 !
Reply
#6

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.
Reply
#7

yes please
Thanks dude !
Reply
#8

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.
Reply
#9

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 ?
Reply
#10

Then you can probably use "my way"..
Reply


Forum Jump:


Users browsing this thread: