IsPlayerInVehicle help.
#6

ok so it didnt work but i did get the error message outside of my car. here is what happens after you enter the checkpoint which is made maybe its that:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(trucking[playerid] == 1)
    {
        DisablePlayerCheckpoint(playerid);
        trucking[playerid] = 2;
        SendClientMessage(playerid, COLOR_WHITE, "You have loaded your goods, make your way to the store!");
        SetPlayerCheckpoint(playerid, 1374.1812,-1890.8579,13.4906, 3.0);
        return 1;
    }
    if(trucking[playerid] == 2)
    {
        DisablePlayerCheckpoint(playerid);
        trucking[playerid] = 3;
        SendClientMessage(playerid, COLOR_WHITE, "You have successfully delivered the goods, make your way back!");
        SetPlayerCheckpoint(playerid, -1552.3555,119.2117,3.5547, 3.0);
        return 1;
    }
    if(trucking[playerid] == 3)
    {
        DisablePlayerCheckpoint(playerid);
        trucking[playerid] = 0;
        SendClientMessage(playerid, COLOR_WHITE, "You have successfully completed the mission!");
        GivePlayerMoney(playerid, 5000);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
IsPlayerInVehicle help. - by NewerthRoleplay - 20.03.2012, 19:45
Re: IsPlayerInVehicle help. - by GNGification - 20.03.2012, 19:47
Re: IsPlayerInVehicle help. - by NewerthRoleplay - 20.03.2012, 20:08
Re: IsPlayerInVehicle help. - by .FuneraL. - 20.03.2012, 20:23
Re: IsPlayerInVehicle help. - by NewerthRoleplay - 20.03.2012, 20:28
Re: IsPlayerInVehicle help. - by NewerthRoleplay - 20.03.2012, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)