iSmokee Posted November 12, 2014 Share Posted November 12, 2014 how I can create a command like that. instance: /give [weaponIDorName] [player] [ammo]. Link to comment
Castillo Posted November 12, 2014 Share Posted November 12, 2014 addCommandHandler getPlayerFromName giveWeapon Link to comment
lLinux Posted November 12, 2014 Share Posted November 12, 2014 (edited) function Wp (Weapon, User, Ammo) el_player = getPlayerFromName(User) giveWeapon(el_player, Weapon, Ammo) end addCommandHandler("give", Wp) Edited November 12, 2014 by Guest Link to comment
Mr_Moose Posted November 12, 2014 Share Posted November 12, 2014 function giveWeaponToPlayer(thePlayer, cmd, weaponIDorName, receiver, ammo) -- ... end addCommandHandler("give", giveWeaponToPlayer) Link to comment
Castillo Posted November 12, 2014 Share Posted November 12, 2014 function Wp (Weapon, User, Ammo) el_player = getPlayerFromName(User) giveWeapon(el_player, Weapon, Ammo) end addCommandHandler("give", Wp) That's wrong. Link to comment
lLinux Posted November 12, 2014 Share Posted November 12, 2014 function Wp (Weapon, User, Ammo) el_player = getPlayerFromName(User) giveWeapon(el_player, Weapon, Ammo) end addCommandHandler("give", Wp) That's wrong. Sorry, I was wrong. 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