11.01.2011, 22:42
How to make one command discovery cowl closing?
Here so:
/boonect - to open/close
Код:
if (strcmp("/bonneton", cmdtext, true, 10) == 0) { GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(carid,engine,lights,alarm,doors,true,boot,objective); return 1; }
Код:
if (strcmp("/bonnetoff", cmdtext, true, 10) == 0) { GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(carid,engine,lights,alarm,doors,false,boot,objective); return 1; }
/boonect - to open/close