Checkpoint dissapears
#1

The checkpoint works the first time, but when I go back it doesn't show anymore.
It won't re-appear after using it.

pawn Код:
#include <streamer>

new house;

public OnGameModeInit()
{
    house = CreateDynamicCP(-1968.6255,109.9457,27.6875,1,0,0,-1,3);
    return 1;
}

CMD:enter(playerid, params[],checkpointid)
{
    if(IsPlayerInDynamicCP(playerid,house))
    {
        SetPlayerPos(playerid,365.7158,-9.8873,1001.8516);
        SetPlayerVirtualWorld(playerid,1);
        SetPlayerInterior(playerid,9);
    }
    return 1;
}

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
    if(checkpointid == house)
    {
        SendClientMessage(playerid,COLOR_RED,"Cluckin' Bell");
    }
    return 1;
}

public OnPlayerLeaveDynamicCP(playerid,checkpointid)
{
    if(checkpointid == house)
    {
        SendClientMessage(playerid,COLOR_RED,"Left Cluckin' Bell entrance");
    }
    return 1;
}
Reply
#2

Anyone know how to fix this problem?
Reply
#3

Maybe because you're still in either virtual world 1 or interior ID 9? The checkpoint will only show up in virtual world 0 and interior ID 0.
Reply
#4

I thought that too, but I set my virtual world and interior back to 0 after I was done & even /slap myself to death.
Reply
#5

You don't need the enter code. Just copy that code to under onplayerenterdynamiccheckpoint..!
Reply
#6

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
You don't need the enter code. Just copy that code to under onplayerenterdynamiccheckpoint..!
Thanks, it shows checkpoints for people now, but I want to make a CMD to /enter without them automatically going into the checkpoint. How can I do this without messing up again?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)