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


Messages In This Thread
Checkpoint dissapears - by Noles2197 - 06.02.2013, 23:54
Re: Checkpoint dissapears - by Noles2197 - 07.02.2013, 20:25
Re: Checkpoint dissapears - by Basssiiie - 07.02.2013, 21:39
Re: Checkpoint dissapears - by Noles2197 - 07.02.2013, 21:46
Re: Checkpoint dissapears - by RajatPawar - 08.02.2013, 15:12
Re: Checkpoint dissapears - by Noles2197 - 08.02.2013, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)