26.01.2014, 15:40
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
if(strcmp(cmd, "/stopengine",true) == 0) {
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
Credits to test_cmds.pwn
Edit: o looks like MCZOFT got to it before me, good luck