06.01.2011, 01:53
No shit
I want to know like if i do /engine and the VEHICLE_PARAMS are on it wil set them to VEHICLE_PARAMS_OFF
so something like this but i want it for maxplayers right now it just chages a number 1 on any one.
I want to know like if i do /engine and the VEHICLE_PARAMS are on it wil set them to VEHICLE_PARAMS_OFF
so something like this but i want it for maxplayers right now it just chages a number 1 on any one.
Код:
if(strcmp(x_nr,"engine",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) if(vid != INVALID_VEHICLE_ID) if(carruning == 0) { carruning = 1; SendClientMessage(playerid,WHITE,"Vehicle {D10000}Engine {11A803}starting,{FFFFFF}please wait."); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); } else { carruning = 0; GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); }