06.05.2012, 23:21
Your if statement with GetPlayerVehicle is slightly wrong, it should be:
I would like to point out that you may also be confusing model ID with vehicle ID, this will only work for vehicle ID 441 which is not necessarily your RC-XD vehicle.
You should use GetVehicleModel to return the model ID of the vehicle, for example:
Vehicle IDs are basically unique integer values that define each vehicle spawned in the server uniquely, they are assigned in order of when they are spawned.
Model IDs are the unique ID's of the models that the vehicles are using (such as 400 for Landstalker), but do not reference specific instances of those vehicles in the server.
pawn Код:
if(GetPlayerVehicleID(playerid) == 441)
You should use GetVehicleModel to return the model ID of the vehicle, for example:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 441)
Model IDs are the unique ID's of the models that the vehicles are using (such as 400 for Landstalker), but do not reference specific instances of those vehicles in the server.