30.12.2010, 09:06
i want the command so you do /carcmd engine and the car with start but right now it will only start with /engine for some reason and when i do other commands in my script it will do this command please help.
Код:
if(!strcmp(cmd,"/carcmd",true)) { SendClientMessage(playerid,WHITE,"USAGE:/car[name]"); SendClientMessage(playerid,COLOR_GREY,"use:Engine,Lights,Trunk"); return 1; } else if (!strcmp(tmp,"engine",true)) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) if(carruning == 0) { SendClientMessage(playerid,WHITE,"Vehicle {D10000}Engine starting,please wait."); SetTimer("enginestart", 4000, 0);// will take 7 sec } else { carruning = 0; GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid,WHITE,"Vehicle {D10000}Engine stopped"); } return 1; }