IsPlayerInVehicle help.
#5

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
A Little Mistake here , replace :

pawn Код:
IsPlayerInVehicle
For :

pawn Код:
if(!IsPlayerInAnyVehicle(playerid))
Getting :

pawn Код:
CMD:startjob(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(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;
}
Ill +rep if it worked
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)