IsPlayerInVehicle help.
#1

Hi making my /startjob command using ZCMD. I don't get an error ingame and i made sure i have return 1; after each section. So here is the command:
pawn Код:
CMD:startjob(playerid, params[])
{
    if(IsPlayerInVehicle(playerid, 414))
    {
        if(pJob[playerid] == TRUCKER)
        {
            SendClientMessage(playerid, COLOR_WHITE, ".:: You have started work ::.");
            SendClientMessage(playerid, COLOR_GREEN, ".: Enter the checkpoint to start :.");
            SetPlayerCheckpoint(playerid, -1580.2484,74.9872,3.5547, 3.0);
            trucking[playerid] = 1;
            return 1;
        }
     else SendClientMessage(playerid, COLOR_SYNTAX, ".:: You must be a trucker / in a truck to work in this vehicle ::.");
     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)