27.07.2016, 09:46
Hey, how do I create a command which uses the syntax /vdoor [vehicleid] [door as number]? The command should open and close selected vehicle doors.
Well first, you need a command processor or you can use the regular Strcmp method in OnPlayerCommandText.
Once you've created the command, you can use GetVehicleDamageStatus and UpdateVehicleDamageStatus to open or close the vehicle doors. If you want someone to create this for you, then you're in the wrong place. Try here instead: https://sampforum.blast.hk/showthread.php?tid=447813 |