Hood/Trunk
2 posters
Page 1 of 1
Hood/Trunk
Simple, make a /trunk and /hood command that would open the car's trunk/hood. It's 2 minutes of scripting.
Outcast- Developer
- Posts : 254
Join date : 2011-04-25
Age : 30
Location : Croatia
Re: Hood/Trunk
Hmm... Seen it on other servers, pretty nice to store weapons in, will bring more RP into the server too. When someone makes car shows it would be good for showing engine with /bonnet :/, for the trunk, yea, store weapons in, cash maybe... Clothes? Anyways, /support this suggestion.
Max Woods- Donator
- Posts : 1171
Join date : 2011-01-02
Location : Croatia, Sea Side
Re: Hood/Trunk
Doesn't have to store anything in it. I just want to be able to open it lol
EDIT: Here's the simple command that would do it.
EDIT2: Tested it and it works.
EDIT: Here's the simple command that would do it.
- Code:
CMD:trunk
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(boot==1) return SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, false, objective);
else SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, true, objective);
}
CMD:hood
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(bonnet==1) return SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, false, boot, objective);
else SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, true, boot, objective);
}
EDIT2: Tested it and it works.
Outcast- Developer
- Posts : 254
Join date : 2011-04-25
Age : 30
Location : Croatia
Re: Hood/Trunk
Okay, I made a better version of it.
Features: Openable hood and trunk of the vehicle. Automated /me message.
Usage: To open a trunk you need to be outside of the vehicle, near it and the vehicle needs to be unlocked. You open it by typing /trunk
To open a hood of the car you need to be inside of the vehicle in the driver's seat. You do it by typing /hood.
/me and error colors are a bit off, but the server scripter can change it easily.
I tested it and haven't found any bugs, but I won't guarantee 100% for it, cause I always over-look some details by accident lol.
Made as a filterscript, no includes needed.
Source: [You must be registered and logged in to see this link.]
AMX dl: [You must be registered and logged in to see this link.]
Features: Openable hood and trunk of the vehicle. Automated /me message.
Usage: To open a trunk you need to be outside of the vehicle, near it and the vehicle needs to be unlocked. You open it by typing /trunk
To open a hood of the car you need to be inside of the vehicle in the driver's seat. You do it by typing /hood.
/me and error colors are a bit off, but the server scripter can change it easily.
I tested it and haven't found any bugs, but I won't guarantee 100% for it, cause I always over-look some details by accident lol.
Made as a filterscript, no includes needed.
Source: [You must be registered and logged in to see this link.]
AMX dl: [You must be registered and logged in to see this link.]
Outcast- Developer
- Posts : 254
Join date : 2011-04-25
Age : 30
Location : Croatia
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum