Checkpoints
#2

well at first you forgot some brackets

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
        if(IsPlayerInAnyVehicle(playerid))
        {//here
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid,COLOR_ORANGE,"Drive back to docks!");
        SetPlayerCheckpoint(playerid,2462.9810,-2097.6760,13.5469, 5.0);
        }
        else if(IsPlayerInAnyVehicle(playerid))
        {
        DisablePlayerCheckpoint(playerid);
        GivePlayerMoney(playerid,1000);
        SendClientMessage(playerid,COLOR_YELLOW,"You got 1000$ for delivering!");
        }//here
        return 1;
}
Also..why are you using isplayerinanyvehicle twice ? it doesnt make sence. What are you trying to do ?
Reply


Messages In This Thread
Checkpoints - by DJRebis - 27.06.2013, 09:45
Re: Checkpoints - by AIped - 27.06.2013, 10:31
Re: Checkpoints - by DJRebis - 27.06.2013, 10:33
Re: Checkpoints - by Vince - 27.06.2013, 10:39

Forum Jump:


Users browsing this thread: