Detain/Drag Command Help
#3

Firstly, the way you create commands through strcmp is inefficient compared to some of the command processors found on the forum, I'd recommend using izcmd since it's what most scripters use. Also, using strlen to check if the command parameters are empty is inefficient, using sscanf is more simple.

As for the problem with the command, the 0 in your PutPlayerInVehicle function means it's trying to place the dragged id into the driver's seat, which is something I imagine you don't want.

Код:
0 - Driver
1 - Front passenger
2 - Back-left passenger
3 - Back-right passenger
4+ - Passenger seats (coach etc.)
That is a guide of what the seat ids are, but everything else seems to be in place.
Reply


Messages In This Thread
Detain/Drag Command Help - by humayunaftabkhan02 - 24.04.2016, 17:06
Re: Detain/Drag Command Help - by mongi - 24.04.2016, 20:45
Re: Detain/Drag Command Help - by DTV - 24.04.2016, 20:57
Re: Detain/Drag Command Help - by humayunaftabkhan02 - 25.04.2016, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)