overlocus Posted August 20, 2018 Share Posted August 20, 2018 Hi guys i want ACL GUN COMMAND /vipgun wipgun gives m4 and ak47 Link to comment
Dimos7 Posted August 20, 2018 Share Posted August 20, 2018 (edited) You can't give ak and m4 only one of them giveWeapon getAccountName getPlayerAccount isObjectInACLGroup aclGetGroup addCommandHandler Edited August 20, 2018 by Dimos7 Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 21, 2018 Share Posted August 21, 2018 6 hours ago, overlocus said: Hi guys i want ACL GUN COMMAND /vipgun wipgun gives m4 and ak47 Hi We are here to help you build code Not to make code for you! 1 Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 21, 2018 Share Posted August 21, 2018 5 hours ago, overlocus said: pls help function vipWeapon (thePlayer) local accName = getAccountName (getPlayerAccount (player) if isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) then giveWeapon(thePlayer,31,20000) outputChatBox ( "Enjoy!", thePlayer) else outputChatBox("Your Not a VIP Member", thePlayer) end end addCommandHandler("vgun",giveWeapon) try this Link to comment
overlocus Posted August 22, 2018 Author Share Posted August 22, 2018 On 21.08.2018 at 05:08, Mσнαмα∂ Hєℓιѕн said: function vipWeapon (thePlayer) local accName = getAccountName (getPlayerAccount (player) if isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) then giveWeapon(thePlayer,31,20000) outputChatBox ( "Enjoy!", thePlayer) else outputChatBox("Your Not a VIP Member", thePlayer) end end addCommandHandler("vgun",giveWeapon) try this i doesnt work pls help Link to comment
SycroX Posted August 22, 2018 Share Posted August 22, 2018 On 8/21/2018 at 04:47, Mσнαмα∂ Hєℓιѕн said: Hi We are here to help you build code Not to make code for you! after a 1 hour ( with sponge bob sound ) ... On 8/21/2018 at 05:08, Mσнαмα∂ Hєℓιѕн said: function vipWeapon (thePlayer) local accName = getAccountName (getPlayerAccount (player) if isObjectInACLGroup("user."..accName, aclGetGroup ( "VIP" )) then giveWeapon(thePlayer,31,20000) outputChatBox ( "Enjoy!", thePlayer) else outputChatBox("Your Not a VIP Member", thePlayer) end end addCommandHandler("vgun",giveWeapon) try this lol hhhhhhhh -- for topic's owner addCommandHandler("vgun", function(player) if not isGuestAccount(getPlayerAccount(player)) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("VIP")) then giveWeapon(player, 31, 1000) outputChatBox("you've got a vip weapon", player, 255, 0, 0, true) else outputChatBox("this command is only for VIP group", player, 255, 0, 0, true) end end end ) 1 Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 23, 2018 Share Posted August 23, 2018 14 hours ago, #َxLysandeR said: after a 1 hour ( with sponge bob sound ) ... lol hhhhhhhh -- for topic's owner addCommandHandler("vgun", function(player) if not isGuestAccount(getPlayerAccount(player)) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("VIP")) then giveWeapon(player, 31, 1000) outputChatBox("you've got a vip weapon", player, 255, 0, 0, true) else outputChatBox("this command is only for VIP group", player, 255, 0, 0, true) end end end ) What do you mean ? I want to help forum users learn coding! Please do not interfere in cases that are not relevant to you Link to comment
SycroX Posted August 23, 2018 Share Posted August 23, 2018 (edited) 2 hours ago, Mσнαмα∂ Hєℓιѕн said: What do you mean ? I want to help forum users learn coding! Please do not interfere in cases that are not relevant to you if you built a code for him he will get used to ask for codes and wont learn something .. so the right way is to give him the functions and let him try by himself . he can also open the wiki and read about the functions and he will learn how to use it another thing .. your code is wrong , checkout line ( 3 & 11 ) Edited August 23, 2018 by #َxLysandeR Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 23, 2018 Share Posted August 23, 2018 24 minutes ago, #َxLysandeR said: if you built a code for him he will get used to ask for codes and wont learn something .. so the right way is to give him the functions and let him try by himself . he can also open the wiki and read about the functions and he will learn how to use it another thing .. your code is wrong , checkout line ( 3 & 11 ) As I said, do not interfere with things that are not relevant to you Maybe I'm not active in the forum, but my coding is stronger than you In the meantime, I wrote this code in no hurry and did not test at all! 1 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