Jump to content

GiveWeapon


TorNix~|nR

Recommended Posts

Hello all :)

please help me:(

this work for me

function giveWeaponsOnSpawn ( theSpawnpont, theTeam )

giveWeapon ( source, 31, 200 ) -- Gives the M4 weapon with 200 ammo

end

addEventHandler ( "onPlayerSpawn", getRootElement(), giveWeaponsOnSpawn ) -- attach the event handler

and this won't work, I need it :/

function giveWeaponsOnSpawn ( theSpawnpont, theTeam )

giveWeapon ( source, 31, 200 ) -- Gives the M4 weapon with 200 ammo

end

addEventHandler ( "onPlayerJoin", getRootElement(), giveWeaponsOnSpawn ) -- attach the event handler

please who can help

Link to comment
Hello all :)

please help me:(

this work for me

function giveWeaponsOnSpawn ( theSpawnpont, theTeam )

giveWeapon ( source, 31, 200 ) -- Gives the M4 weapon with 200 ammo

end

addEventHandler ( "onPlayerSpawn", getRootElement(), giveWeaponsOnSpawn ) -- attach the event handler

and this won't work, I need it :/

function giveWeaponsOnSpawn ( theSpawnpont, theTeam )

giveWeapon ( source, 31, 200 ) -- Gives the M4 weapon with 200 ammo

end

addEventHandler ( "onPlayerJoin", getRootElement(), giveWeaponsOnSpawn ) -- attach the event handler

please who can help

function giveWeaponsOnSpawn () 
giveWeapon(source,31,200) 
end 
addEventHandler("onPlayerJoin", getRootElement(), giveWeaponsOnSpawn) 

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