Jump to content

[SCRIPT]Help me in my resource


verdao

Recommended Posts

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

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
    
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 by Guest
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...