Jump to content

[HELP] ACL GUN COMMAND


overlocus

Recommended Posts

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

 

  • Haha 1
Link to comment
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
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 by #َxLysandeR
Link to comment
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!

  • Haha 1
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...