Nitride Posted August 21, 2011 Share Posted August 21, 2011 i want a script that disables rhinos or miniguns for everybody on my server except for admins. i have tried all the others Link to comment
Baseplate Posted August 21, 2011 Share Posted August 21, 2011 why don''t u script it alone and if u have any errors post the code this isn't a requesting forums Link to comment
Nitride Posted August 21, 2011 Author Share Posted August 21, 2011 I want to learn how to script but is it hard Link to comment
Baseplate Posted August 21, 2011 Share Posted August 21, 2011 lol....it's not our problem go to wiki.multitheftauto.com and learn from it Link to comment
Nitride Posted August 21, 2011 Author Share Posted August 21, 2011 can you help or not Link to comment
Nitride Posted August 21, 2011 Author Share Posted August 21, 2011 okay, i got it to work but when i get in the rhino it blows up but then it goes back to the place i made it on full health function onEnter (vehicle, seat, jacker) if ( getElementModel(vehicle) == 432 ) then if ( hasObjectPermissionTo(source, "function.kickPlayer")) then else killPed(source) outputChatBox("You are a cheater", source, 255, 0, 0 ) blowVehicle(vehicle) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), onEnter ) function onSwitchToMinigun (previous, current) if ( current == 38 ) then if ( hasObjectPermissionTo(source, "function.kickPlayer")) then else killPed(source) outputChatBox("You are a cheater", source, 255, 0, 0 ) end end end addEventHandler("onPlayerWeaponSwitch", getRootElement(), onSwitchToMinigun ) Link to comment
Nitride Posted August 21, 2011 Author Share Posted August 21, 2011 function onEnter (vehicle, seat, jacker) if ( getElementModel(vehicle) == 432 ) then if ( hasObjectPermissionTo(source, "function.kickPlayer")) then else killPed(source) outputChatBox("You are a cheater", source, 255, 0, 0 ) blowVehicle(vehicle) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), onEnter ) function onSwitchToMinigun (previous, current) if ( current == 38 ) then if ( hasObjectPermissionTo(source, "function.kickPlayer")) then else killPed(source) outputChatBox("You are a cheater", source, 255, 0, 0 ) end end end addEventHandler("onPlayerWeaponSwitch", getRootElement(), onSwitchToMinigun ) it won't work. it only works sometimes Link to comment
SDK Posted August 21, 2011 Share Posted August 21, 2011 Be more clear, what's the exact problem? + errors in debugscript 3 okay, i got it to work but when i get in the rhino it blows up but then it goes back to the place i made it on full health If you want to "delete" vehicles, use destroyElement, not blowVehicle. Link to comment
Nitride Posted August 21, 2011 Author Share Posted August 21, 2011 That is exactly what I meant. Thank you. But there is a bug so some people find a way around the anti minigun. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now