Checkpoint visible to all players
#1

When I'm playing with friends, the only person that can use the checkpoint is player ID 0.
How can I make it to where all players can see and use checkpoints?

pawn Код:
new house;

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

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
    if(checkpointid == house)
    {
        SendClientMessage(playerid,COLOR_RED,"Door step of house");
       
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid,x,y,z);
        SetPlayerPos(playerid,365.7158,-9.8873,1001.8516);
        SetPlayerVirtualWorld(playerid,1);
        SetPlayerInterior(playerid,9);
    }
    return 1;
}
Reply


Messages In This Thread
Checkpoint visible to all players - by Noles2197 - 08.02.2013, 21:40
Re: Checkpoint visible to all players - by Jefff - 08.02.2013, 21:55
Re: Checkpoint visible to all players - by Flake. - 08.02.2013, 21:57
Re: Checkpoint visible to all players - by Noles2197 - 08.02.2013, 22:29
Re: Checkpoint visible to all players - by RajatPawar - 09.02.2013, 03:41
Re: Checkpoint visible to all players - by Threshold - 09.02.2013, 04:13
Re: Checkpoint visible to all players - by RajatPawar - 09.02.2013, 04:40

Forum Jump:


Users browsing this thread: 1 Guest(s)