Mission Checkpoints spam :D ???
#1

Hello,
i've got a little problem here.

pawn Код:
if (strcmp("/work", cmdtext, true, 10) == 0)
    {
        SetPlayerCheckpoint(playerid, 479.87573242188, 882.62823486328, -31.468822479248, 4.0);
        SendClientMessage(playerid,COLOR_YELLOW,"Go to the checkpoint to load.");
        return 1;
    }
and:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid, 693.90051269531, 843.71759033203, -27.879653930664, 4.0);
    SendClientMessage(playerid,COLOR_BLUE,"Go to the next checkpoint to unload.");
    GivePlayerMoney(playerid, 1000);
    return 1;
}
so i wanna make that if someon types /work a checkpoint appear(works fine)
and if he rides into the checkpoint another checkpoint appears.
and then he get $1000 and the checkpoint disappears
But if he go into that other checkpoint it just appears again and again and again and it spams.

can someone help me? thanks
Reply
#2

It's pretty obvious.. Everytime he enters the checkpoint it sets the same checkpoint as his current checkpoint..
Reply
#3

but how do i make it an other checkpoint then?
Reply
#4

You have to use arrays, which you set to another value each time you set a checkpoint. Take a look at my filterscript (look my signature).
Reply
#5

haha bedankt voor je filterscript.
Ik ben ook nederlands :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)