- 0
/engine
-
Similar Content
-
- 3 answers
- 253 views
-
- 16 replies
- 6,724 views
-
-
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
Am facut aceasta comanda pentru a porni motorul la masina si al opri utilizand comanda /engine, da nu merge de loc de la ce poate fi?
[pawn] 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);
}
else
{
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;
}[/pawn]
Link to comment
Share on other sites
9 answers to this question
Recommended Posts