Jump to content

ayuda panel Vip MTADayz


Chaky

Recommended Posts

si publicas el scrip te ayudo no quiero descargarlo D:
este es el client
function vip() 
    triggerServerEvent ( "ClientHaveLevel", getLocalPlayer() ) 
end 
  
addCommandHandler ("vip", vip) 
  
function armavip () 
showCursor (true) 
triggerServerEvent ( "onGreeting", getLocalPlayer() ) 
  
end 
  
function equipvip () 
showCursor (true) 
triggerServerEvent ( "onGreeting2", getLocalPlayer() ) 
  
end 
  
function slotvip () 
showCursor (true) 
triggerServerEvent ( "onGreeting3", getLocalPlayer() ) 
  
end 
  
function vip2() 
    painel = guiCreateWindow(500, 300, 488, 320, "Painel V.I.P Survivor Games", false) 
    guiWindowSetSizable(painel, false) 
    showCursor ( true ) 
    guiSetAlpha(painel, 1.00) 
    guiSetProperty(painel, "CaptionColour", "FF6AE419") 
  
    arma = guiCreateButton(48, 144, 341, 38, "Pegar Armas", false, painel) 
    equip = guiCreateButton(48, 193, 341, 38, "Pegar Equipamentos", false, painel) 
    slot = guiCreateButton(48, 245, 341, 38, "Blood", false, painel) 
    equip = guiCreateButton(48, 193, 341, 38, "Pegar Equipamentos", false, painel) 
    close = guiCreateButton(156, 287, 114, 37, "Fechar", false, painel) 
    memo = guiCreateMemo(17, 30, 421, 104, "Obrigado por adquirir o VIP no servidor SurvivorGames.Assim você está ajudando a manter o servidor.......Divirta-se com seus itens ! ! !", false, painel) 
    guiMemoSetReadOnly(memo, true) 
  
    addEvent( "showvip",true ) 
    addEventHandler ( "onClientGUIClick", arma, armavip, false ) 
    addEventHandler ( "onClientGUIClick", equip, equipvip, false ) 
    addEventHandler ( "onClientGUIClick", slot, slotvip, false ) 
    addEventHandler ( "onClientGUIClick", close, 
    function() 
        guiSetVisible(painel, false) 
        showCursor(false) 
    end, false ) 
end 
  
addEvent( "ShowVipPanel", true ) 
addEventHandler( "ShowVipPanel", getRootElement(), vip2) 

Link to comment
si publicas el scrip te ayudo no quiero descargarlo D:
y el Server.lua
  
--Armamento 
function greetingHandler () 
   setElementData(source, "M4", 1) 
   setElementData(source, "M4 Mag", 600) 
   setElementData(source, "CZ 550", 1) 
   setElementData(source, "CZ 550 Mag", 100) 
end 
addEvent( "onGreeting", true ) 
addEventHandler( "onGreeting", getRootElement(), greetingHandler ) 
  
-- Equipamentos 
function greeting2Handler () 
   setElementData(source, "Coyote Backpack", 1) 
   setElementData(source, "Burger", 5) 
   setElementData(source, "Milk", 5) 
   setElementData(source, "Map", 1) 
   setElementData(source, "GPS", 1) 
   setElementData(source, "Toolbox", 1) 
   setElementData(source, "Tent", 1) 
   setElementData(source, "Infrared Goggles", 1) 
   setElementData(source, "Night Vision Goggles", 1) 
   setElementData(source, "Watch", 1) 
   setElementData(source, "Medic Kit", 5) 
   setElementData(source, "Morphine", 5) 
   setElementData(source, "Painkiller", 5) 
   setElementData(source, "Camouflage Clothing", 1) 
   setElementData(source, "Bandage", 6) 
   setElementData(source, "Tire", 4) 
   setElementData(source, "Engine", 1) 
end 
addEvent( "onGreeting2", true ) 
addEventHandler( "onGreeting2", getRootElement(), greeting2Handler ) 
  
--Slots 
function greeting3Handler () 
   setElementData(source, "blood", 15000) 
end 
addEvent( "onGreeting3", true ) 
addEventHandler( "onGreeting3", getRootElement(), greeting3Handler ) 
  
  
function PlayerHaveLevel( ) 
    local accName = getAccountName ( getPlayerAccount ( source ) ) 
    if ( isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) ) then 
        triggerClientEvent(source, "ShowVipPanel", source ) 
    else 
        outputChatBox("Você não e V.I.P para usar esse comando",source) 
    end 
end 
  
addEvent( "ClientHaveLevel", true ) 
addEventHandler( "ClientHaveLevel", getRootElement(), PlayerHaveLevel ) 

Link to comment
.../mods/deathmatch/acl.xml
  
<group name="VIP"> 
<object name="user.TomasitoCaram"></object> 
</group> 
  

Para agregar VIP's debes agregar la linea del object name bla bla bla.

Okay gracias mañana.probare y para añadir otro user vip nada mas agrego otra linea ?

Link to comment
.../mods/deathmatch/acl.xml
  
<group name="VIP"> 
<object name="user.TomasitoCaram"></object> 
</group> 
  

Para agregar VIP's debes agregar la linea del object name bla bla bla.

Okay gracias mañana.probare y para añadir otro user vip nada mas agrego otra linea ?

Link to comment
.../mods/deathmatch/acl.xml
  
<group name="VIP"> 
<object name="user.TomasitoCaram"></object> 
</group> 
  

Para agregar VIP's debes agregar la linea del object name bla bla bla.

Okay gracias mañana.probare y para añadir otro user vip nada mas agrego otra linea ?

Si, y recuerda recargar el ACL.

Link to comment
.../mods/deathmatch/acl.xml
  
<group name="VIP"> 
<object name="user.TomasitoCaram"></object> 
</group> 
  

Para agregar VIP's debes agregar la linea del object name bla bla bla.

Okay gracias mañana.probare y para añadir otro user vip nada mas agrego otra linea ?

Si, y recuerda recargar el ACL.

eso como ? me podrias explicar porfa
Link to comment
  • Recently Browsing   0 members

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