Jump to content

¿getPlayerAccount? Ayuda


Aruna

Recommended Posts

Hola a todos, estube probando un par de cosas en este script y al colocar /onduty en el debug me sale que 'getPlayerAccount'(a nil value)

function giveblood (thePlayer) 
local account = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
        
        end           
    outputChatBox ("#1AFF00 El Administrador "..getPlayerName(thePlayer).."#1AFF00 está en servicio",root,255,255,255,true) 
    setElementData(thePlayer, "blood",999999999) 
end 
addCommandHandler("onduty", giveblood) 
  
function bloodback(thePlayer) 
local account = getAccountName ( getPlayerAccount ( thePlayer ) ) 
        if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then 
  
        end 
    outputChatBox ("#FF0000 El Administrador "..getPlayerName(thePlayer).."#FF0000 está fuera de servicio",root,255,255,255,true) 
    setElementData(thePlayer, "blood",12000) 
end 
addCommandHandler("offduty", bloodback) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...