This code doesn't work [HELP]
#10

Sigh.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vid = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(playerid, 0);
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(GetVehicleModel(vid) == 420 || GetVehicleModel(vid) == 438) // Entered taxi
        {
            if(pInfo[playerid][JobMember] != 1 && pInfo[playerid][JobLeader] != 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "  You are not a Taxi Driver!  ");
                RemovePlayerFromVehicle(playerid);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "/duty to be on/off Job Duty!");
            }
        }
    }
    return 1;
}
Try that.
Reply


Messages In This Thread
This code doesn't work [HELP] - by Reklez - 22.03.2012, 02:17
Re: This code doesn't work [HELP] - by MP2 - 22.03.2012, 02:21
Re: This code doesn't work [HELP] - by Reklez - 22.03.2012, 02:24
Re: This code doesn't work [HELP] - by MP2 - 22.03.2012, 02:27
Re: This code doesn't work [HELP] - by GtasaPoliceModz - 22.03.2012, 02:37
Re: This code doesn't work [HELP] - by Reklez - 22.03.2012, 02:45
Re: This code doesn't work [HELP] - by Reklez - 22.03.2012, 03:24
Re: This code doesn't work [HELP] - by MP2 - 22.03.2012, 03:38
Re: This code doesn't work [HELP] - by Reklez - 22.03.2012, 03:57
Re: This code doesn't work [HELP] - by MP2 - 22.03.2012, 04:17

Forum Jump:


Users browsing this thread: 1 Guest(s)