- 0
/engine si /fill
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
gabbii
cum pot face cand scri/fill sa nu bage benzina cand motoru e pornit?
/engine si /stopengine
} if(strcmp(cmd, "/engine",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { if(IsABBike(vid)) return SendClientMessage(playerid, COLOR_GRAD2, "This bike doesen't have engine!"); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); // |||||| SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective); //VEHICLE_PARAMS_ON is used to start the engine,it purely replace the engine thing! } return 1; [code] } if(strcmp(cmd, "/stopengine",true) == 0) { new vid = GetPlayerVehicleID(playerid); if(vid != INVALID_VEHICLE_ID) { if(IsABBike(vid)) return SendClientMessage(playerid, COLOR_GRAD2, "This bike doesen't have engine!"); GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); // |||||| SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); //Here the VEHICLE_PARAMS_OFF will turn off your engine. } return 1; }si /fill} if(strcmp(cmd, "/fill", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsAtGasStation(playerid)) { if(Gas[idcar] <= 99) { TogglePlayerControllable(playerid, 0); GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3); SetTimer("Fillup",RefuelWait,0); Refueling[playerid] = 1; } else { GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gas can is full",2000,3); } } else { SendClientMessage(playerid,COLOR_GREY," You're not at a Gas Station!"); } } return 1; }7 answers to this question
Recommended Posts