Jump to content

Seasparrow Gun | Damage Player


Annas

Recommended Posts

Posted

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 
) 

Posted

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 
) 

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

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

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

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

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

Inactivo.

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

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