26.05.2018, 19:54
This is engine off command.
This is engine open command.
HOW TO BE "/engine" ENGINE ON AND ALSO ENGINE OFF?
Код:
CMD:engineoff(playerid, params[]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); if(MotorsuzArac(vehicleid)) return 1; for(new x = 0; x < MAX_VEHICLES; x++) { if(Araclar[x][AracScriptID] == vehicleid) { if(Araclar[x][MotorDurum] == 1) { EmoteMesaj(playerid,5.0, "anahtarı saat yцnьnьn tersine зevirir ve aracın motorunu kapatmaya зalışır."); format(MesajString, sizeof(MesajString), "Motor Kapanmıştır - %s",AracIsimleri[GetVehicleModel(vehicleid)-400]); DoMesaj(playerid,5.0,MesajString); Araclar[x][MotorDurum] = 0; Araclar[x][FarDurum] = 0;
Код:
CMD:engine(playerid, params[]) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); if(MotorsuzArac(vehicleid)) return 1; for(new x = 0; x < MAX_VEHICLES; x++) { if(Araclar[x][AracScriptID] == vehicleid) { if(Araclar[x][Benzin] <= 0) { return HataMesajiYolla(playerid,"Aracın benzini bitmiş."); } if(Araclar[x][MotorDurum] != 0) return 1;
HOW TO BE "/engine" ENGINE ON AND ALSO ENGINE OFF?