09.01.2018, 16:02
Quote:
You can use this method to check what model the car is.
we know that a pizzaboy is the id: 448 (https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List) Then we can check if the model the player sits in, is equal to 448 by doing the following: PHP код:
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID You may also want to check if the player is in a vehicle before doing this. That can be done by using "IsPlayerInVehicle(playerid)" (https://sampwiki.blast.hk/wiki/IsPlayerInVehicle) |
here:
if(Vehicle_Job_1(vehicleid) && Info[playerid][pJob] <= 1)