- 0
[GF/RP] problema comanda /engine
-
Similar Content
-
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
anakin29
Buna ziua am si eu 2 problema la comanda de motor:
1.Deci vreau sa nu mai apara /engine [on/off] adica cand dai /engine sa tio porneasca sau sa tio opreasca
2e un bug cand opresti motorul te da jos automat si cand intri inapoi nu te mai poti da jos
CMD
[pawn]dcmd_engine(playerid,params[]){
#pragma unused params
if(IsPlayerConnected(playerid)){
if(!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE, "[uSAGE]: /engine [on/off]");
new vehicle = GetPlayerVehicleID(playerid);
if(strcmp(params,"on",true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
if(Vehicle[vehicle][Engine] == 0) { GameTextForPlayer(playerid,"~W~Starting engine",3000,3); SetTimerEx("TurnOnEngine", MAX_START_TIME*1000, 0, "dd", playerid, vehicle); }
} }
if(strcmp(params,"off",true) == 0) { TurnOffEngine(playerid, vehicle); }
}
return true;
}[/pawn]
MA PUTETI AJUTA? MULTUMESC ANITICIPAT
6 answers to this question
Recommended Posts