04.11.2016, 18:33
For example, you should use
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.
Код:
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; }