Jump to content

Seasparrow Gun | Damage Player


Annas

Recommended Posts

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

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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...