iSmokee Posted November 12, 2014 Posted November 12, 2014 how I can create a command like that. instance: /give [weaponIDorName] [player] [ammo].
Castillo Posted November 12, 2014 Posted November 12, 2014 addCommandHandler getPlayerFromName giveWeapon San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lLinux Posted November 12, 2014 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 Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
Mr_Moose Posted November 12, 2014 Posted November 12, 2014 function giveWeaponToPlayer(thePlayer, cmd, weaponIDorName, receiver, ammo) -- ... end addCommandHandler("give", giveWeaponToPlayer) MTA Community | GitHub | 99Stack Forum
Castillo Posted November 12, 2014 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
lLinux Posted November 12, 2014 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. Skype: HackerlLinux ¿Quieres aprender scripting para MTA? - http://www.scriptingmtasa.wordpress.com "La disciplina es la clave del exito"
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