10.05.2014, 21:04
Tipo Meu Amigo Coloco um Comando /motor No Meu GM Mais Eu Quero Tirar Mais Quando Eu Tiro E Entro No Jogo o Carro Nгo Liga e Como Eu tirei o Comando /motor o carro nгo liga alguem me ajuda
================================================== ==================================
================================================== ==================================
================================================== ==================================
================================================== ==================================
Код:
new EngineCarro[MAX_VEHICLES] = 0;
Код:
if(strcmp(cmd, "/motor",true) == 0)//na public OnPlayerCommandText { new vid = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid)) { if(EngineCarro[vid] == 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Veiculo: {228B22}Ligado!"); EngineCarro[vid] = 1; } else if(EngineCarro[vid] == 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); SendClientMessage(playerid, 0xFFFFFFAA, "{FFFFFF}Veiculo: {FF0000}Desligado!"); EngineCarro[vid] = 0; } } return 1; }
Код:
if(newstate == PLAYER_STATE_DRIVER) { new vid = GetPlayerVehicleID(playerid); if(EngineCarro[vid] == 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SendClientMessage(playerid, COR_GRO, "Motor Desligado! /motor Para Ligб-lo. "); }