[HELP] Script is acting wierd
#6

Quote:
Originally Posted by aRoach
Посмотреть сообщение
Try this:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
    if(Player[playerid][Job] == 8 && Player[playerid][Job2] == 8)
    {
        SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
        OnTaxiDuty[playerid] = 1;
    }
    else
    {
        SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
        RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
This will require you to be a Taxi Driver in your BOTH jobs which isnt what he wants to achieve.
Try this:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 420)
{
    if(Player[playerid][Job] == 8 || Player[playerid][Job2] == 8)
    {
       SendClientMessage(playerid, WHITE, "You are now accepting taxi calls!");
       OnTaxiDuty[playerid] = 1;
    }
    else
    {
        SendClientMessage(playerid, WHITE, "You must be a taxi driver to drive a taxi!");
        RemovePlayerFromVehicle(playerid);
    }
}
Reply


Messages In This Thread
[HELP] Script is acting wierd - by Nuke547 - 19.02.2012, 16:12
Re: [HELP] Script is acting wierd - by V_LOPE - 19.02.2012, 16:17
Re: [HELP] Script is acting wierd - by Madd Kat - 19.02.2012, 16:18
Re: [HELP] Script is acting wierd - by aRoach - 19.02.2012, 16:19
Re: [HELP] Script is acting wierd - by ReneG - 19.02.2012, 16:20
Re: [HELP] Script is acting wierd - by Universal - 19.02.2012, 16:22
Re: [HELP] Script is acting wierd - by Madd Kat - 19.02.2012, 16:24
Re: [HELP] Script is acting wierd - by aRoach - 19.02.2012, 16:26
Re: [HELP] Script is acting wierd - by Nuke547 - 19.02.2012, 16:26
Re: [HELP] Script is acting wierd - by Universal - 19.02.2012, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)