Jump to content

Ajuda com script


Recommended Posts

um exemplo de como você pode fazer isso

marker = createMarker(2326.4553222656,838.19079589844,6.3528056144714,"cylinder",2,255,0,0,255) 
  
function command(player) 
    if player then 
        if not isElementWithinMarker(player,marker) then 
            return 
        end 
        local account = getPlayerAccount(player) 
        if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Policial")) then 
            setElementModel(player,0) 
            giveWeapon(player,31,500) 
        end 
    end 
end 
addCommandHandler("batercartao", command) 

Edited by Guest
Link to comment

Banex, eu vi esse script, mais não está funcinando apareceu alguns erros, tentei resoslver e conseguir fazer apenas o marker aparecer mais quando digito comando "/batercartao" ele não funciona, será que fis algo de errado??

Script

marker = createMarker(2326.4553222656,838.19079589844,6.3528056144714,"cylinder",2,255,0,0,255) 
  
function command(player) 
    if player then 
        if not isElementWithinMarker(player,marker) 
       then 
        local account = getPlayerAccount(player) 
       if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Soldado")) then 
            setElementModel(player,0) 
            giveWeapon(player,31,500) 
            end 
            end 
end 
end 
addCommandHandler("batercartao", command) 

Link to comment

Aqui está img: http://i.imgur.com/ckU9cSU.png?1

Codigo:

marker = createMarker(2319.7861328125,836.51287841797,6.7419986724854,"cylinder",2,255,0,0,255) 
  
function command(player) 
    if player then 
        if not isElementWithinMarker(player,marker) 
            return 
        end 
        local account = getPlayerAccount(player) 
        if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Soldado")) then 
            setElementModel(player,0) 
            giveWeapon(player,31,500) 
        end 
    end 
end 
addCommandHandler("batercartao", command) 

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