Aruna Posted October 21, 2014 Posted October 21, 2014 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)
Castillo Posted October 21, 2014 Posted October 21, 2014 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. Education is the most powerful weapon which you can use to change the world.
Aruna Posted October 21, 2014 Author Posted October 21, 2014 Fijate en el meta.xml del recurso, seguro lo especificaste como un script client side, y no server side. Si Gracias
Castillo Posted October 21, 2014 Posted October 21, 2014 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts