verdao Posted August 26, 2013 Share Posted August 26, 2013 English I am trying to create one kit for admins only what does not help me Portuguêse estou tentando criar 1 kit para admins só que não funciona me ajudem function kitarmas(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then giveWeapon(source, 4, 200, true) giveWeapon(source, 24, 200, true) giveWeapon(source, 26, 200, true) giveWeapon(source, 28, 200, true) giveWeapon(source, 31, 200, true) giveWeapon(source, 34, 200, true) giveWeapon(source, 37, 200, true) giveWeapon(source, 16, 200, true) giveWeapon(source, 46, 200, true) outputChatBox("#00ff00[Kitadmin]: Você pegou o Kit admin", source, 255, 255, 255, true) end else end end addCommandHandler("kitadmin", kitarmas) Link to comment
EstrategiaGTA Posted August 26, 2013 Share Posted August 26, 2013 Try this: function kitarmas() accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then giveWeapon(source, 4, 200, true) giveWeapon(source, 24, 200, true) giveWeapon(source, 26, 200, true) giveWeapon(source, 28, 200, true) giveWeapon(source, 31, 200, true) giveWeapon(source, 34, 200, true) giveWeapon(source, 37, 200, true) giveWeapon(source, 16, 200, true) giveWeapon(source, 46, 200, true) outputChatBox("#00ff00[Kitadmin]: Você pegou o Kit admin", source, 255, 255, 255, true) end end addCommandHandler("kitadmin", kitarmas) Link to comment
WASSIm. Posted August 26, 2013 Share Posted August 26, 2013 if want speak Portuguêse go here: viewforum.php?f=120 Link to comment
manawydan Posted August 26, 2013 Share Posted August 26, 2013 (edited) function kitarmas(thePlayer) if isGuestAccount(getPlayerAccount(thePlayer)) then return end local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then giveWeapon(thePlayer, 4, 200, true) giveWeapon(thePlayer, 24, 200, true) giveWeapon(thePlayer, 26, 200, true) giveWeapon(thePlayer, 28, 200, true) giveWeapon(thePlayer, 31, 200, true) giveWeapon(thePlayer, 34, 200, true) giveWeapon(thePlayer, 37, 200, true) giveWeapon(thePlayer, 16, 200, true) giveWeapon(thePlayer, 46, 200, true) outputChatBox("#00ff00[Kitadmin]: Você pegou o Kit admin", thePlayer, 255, 255, 255, true) end end addCommandHandler("kitadmin", kitarmas) editado, desculpe o erro! Edited August 26, 2013 by Guest Link to comment
verdao Posted August 26, 2013 Author Share Posted August 26, 2013 It worked just outboxchat not received weapons Funcionou apenas o outboxchat nao recebi as armas Link to comment
Castillo Posted August 26, 2013 Share Posted August 26, 2013 Are you sure? because it should work. 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