Jump to content

¿getPlayerAccount? Ayuda


Aruna

Recommended Posts

Posted

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) 

n-560x95_FFFFFF_FFFFFF_000000_000000.png
Posted

Fijate en el meta.xml del recurso, seguro lo especificaste como un script client side, y no server side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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