CMD Does not recognize car
#2

525 is the modelid, you need to use the vehicleid and in that case, you should create the vehicle with a name and use that in the function.
pawn Код:
// Example:

// Global variable
new
    mechanic_veh
;

// Somewhere you create the vehicle
mechanic_veh = CreateVehicle(525 ... /* rest of params */);

// to that command
if(!IsPlayerInVehicle(playerid, mechanic_veh)) return SendClientMessage(playerid, 0xE0313AFF, "(( [Mechanic] You are not in a mechanics vehicle! ))");
You should also check if he is driver to use the command, because he might be passenger.
Reply


Messages In This Thread
CMD Does not recognize car - by NicholasA - 24.12.2012, 10:00
Re: CMD Does not recognize car - by Konstantinos - 24.12.2012, 10:06
Re: CMD Does not recognize car - by Hiddos - 24.12.2012, 10:12
Re: CMD Does not recognize car - by NicholasA - 24.12.2012, 10:15
Re: CMD Does not recognize car - by Konstantinos - 24.12.2012, 10:21

Forum Jump:


Users browsing this thread: 3 Guest(s)