23.09.2011, 20:23
Ola, queria pedir a ajuda de vcs com meus controle de carro eu ja tem no meu gm mais so que e digitando luzoff luzon
queria por isso em DIALOG o cara digita /carmenu e aprece abrir capo fechar capo os comandos sao esses
#define VEHICLE_PARAMS_UNSET -1 //This sets if your using the params
#define VEHICLE_PARAMS_OFF 0 //This will set your params OFF
#define VEHICLE_PARAMS_ON 1
Essa soa as defines tipo eu ja tentei de tudo pra por isso em dialog mais como so noob em PWN nao consegui
brigado quem vai me ajudar.
queria por isso em DIALOG o cara digita /carmenu e aprece abrir capo fechar capo os comandos sao esses
Quote:
if(strcmp(cmd, "/luzon",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,al arm,doors2,bonnet,boot,objective); } return 1; } if(strcmp(cmd, "/luzoff",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,a larm,doors2,bonnet,boot,objective); } return 1; } if(strcmp(cmd, "/alarmeon",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights2,VEHICLE_PARA MS_ON,doors2,bonnet,boot,objective); } return 1; } if(strcmp(cmd, "/alarmeoff",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights2,VEHICLE_PARA MS_OFF,doors2,bonnet,boot,objective); } return 1; } if(strcmp(cmd, "/abrircapo",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,VEHICLE_PARAMS_ON,boot,objective); } return 1; } if(strcmp(cmd, "/fecharcapo",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,VEHICLE_PARAMS_OFF,boot,objective); } return 1; } if(strcmp(cmd, "/abrirportamalas",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,VEHICLE_PARAMS_ON,objective); } return 1; } if(strcmp(cmd, "/fecharportamalas",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { GetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights2,alarm,doors2 ,bonnet,VEHICLE_PARAMS_OFF,objective); } return 1; } |
#define VEHICLE_PARAMS_OFF 0 //This will set your params OFF
#define VEHICLE_PARAMS_ON 1
Essa soa as defines tipo eu ja tentei de tudo pra por isso em dialog mais como so noob em PWN nao consegui
brigado quem vai me ajudar.