Annas Posted May 17, 2015 Share Posted May 17, 2015 i have big problem that's seasParrow didn't damaged players with the (Seasparrow Weapon) i try to make this but not work .. SERVER SIDE : local vehicles = { [ 447 ] = true, -- SEASPARROW ID } addEventHandler ( "onClientVehicleStartEnter", root, function ( thePlayer, seat ) if ( thePlayer == localPlayer ) then if ( vehicles [ getElementModel ( source ) ] ) then toggleControl ( "vehicle_fire", true ) toggleControl ( "vehicle_secondary_fire", true ) end end end ) Link to comment
WhoAmI Posted May 17, 2015 Share Posted May 17, 2015 Serverside? Not clientside? Check this s-side: local vehicles = { [ 447 ] = true, -- SEASPARROW ID } addEventHandler ( "onVehicleEnter", root, function ( thePlayer, seat ) if ( vehicles [ getElementModel ( source ) ] ) then toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end end ) Link to comment
Annas Posted May 17, 2015 Author Share Posted May 17, 2015 Serverside? Not clientside?Check this s-side: local vehicles = { [ 447 ] = true, -- SEASPARROW ID } addEventHandler ( "onVehicleEnter", root, function ( thePlayer, seat ) if ( vehicles [ getElementModel ( source ) ] ) then toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end end ) not work , i need it able to damage players when i fight with SeasParrow gun ! Link to comment
Mr.unpredictable. Posted May 17, 2015 Share Posted May 17, 2015 (edited) Nvm my bad. Edited May 17, 2015 by Guest Link to comment
Walid Posted May 17, 2015 Share Posted May 17, 2015 Do you know what that code does? It removes vehicle fire. with that code you won't be able to shoot with vehilce weapons. lol as i can see it's enabled true. Link to comment
Annas Posted May 17, 2015 Author Share Posted May 17, 2015 help me .. , i need be able to fight with the (Seasparrow) weapons .. , can any one add a new code to let the player damaged from (seasparrow) guns .. Link to comment
Enargy, Posted May 17, 2015 Share Posted May 17, 2015 help me .. , i need be able to fight with the (Seasparrow) weapons .. , can any one add a new code to let the player damaged from (seasparrow) guns .. It codes only work if you get a seasparrow and activate his weapon. not damaging. Link to comment
Annas Posted May 17, 2015 Author Share Posted May 17, 2015 help me .. , i need be able to fight with the (Seasparrow) weapons .. , can any one add a new code to let the player damaged from (seasparrow) guns .. It codes only work if you get a seasparrow and activate his weapon. not damaging. so how ? what's the functions or give me complete Code .. 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