Why this won't work?
#3

For example, you should use
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
     new vehiclemodel = GetVehicleModel(vehicleid);
     if(vehiclemodel == 448)
     {
         SendClientMessage(playerid, -1, "{CE0000}Job: You can start the Pizzaboy job by using {00FF00}/pizza");
     }
     else if(vehiclemodel == 596)
     {
        SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3);
     }
     else if(vehiclemodel == 597)
     {
        SetPlayerWantedLevelEx(playerid,GetPlayerWantedLevel(playerid)+3);
     }
     // rest of code, with vehiclemodel instead vehicleid
     else if(vehiclemodel == 425 && pInfo[playerid][pArmy] == 0)
     {
        SCM(playerid,COLOR_RED,"You aren't in army");
        RemovePlayerFromVehicle(playerid);
     }
     return 0;
}
Why that? You can check this simply by command /dl. Vehicle ID is ID of that current vehicle, assigned by SA:MP. Vehicle model is... model, like buffallo or fbi rancher.
Reply


Messages In This Thread
Why this won't work? - by StrikerZ - 04.11.2016, 15:32
Re: Why this won't work? - by Vince - 04.11.2016, 15:55
Re: Why this won't work? - by Desaint - 04.11.2016, 18:33
Re: Why this won't work? - by Sanady - 04.11.2016, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)