What's wrong with this code?
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate == PLAYER_STATE_DRIVER)
    {
        if (GetVehicleModel(GetVehiclePlayerID(playerid)) == 487)
        {
            if (!isPilot[playerid])
            {
                SendClientMessage(playerid, COLOR_RED, "You must be the Pilot class to fly helicopters.");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
What's wrong with this code? - by NoahF - 10.05.2014, 10:57
Re: What's wrong with this code? - by Matess - 10.05.2014, 11:01
Re: What's wrong with this code? - by NoahF - 10.05.2014, 11:05
Re: What's wrong with this code? - by Konstantinos - 10.05.2014, 11:10
Re: What's wrong with this code? - by NoahF - 10.05.2014, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)