Jump to content

Donators For Race


RdX

Recommended Posts

Hi Guys

How are u

i make a new script for race dm name : Donator i need ur help in this Script

and i create Button i need press button open window

you know how

And sorry for bad english :(

This is my code

panel = guiCreateWindow ( 0, 0, 0.5, 0.4, "Donator", true ) 
  
Tabpanel = guiCreateTabPanel ( 450, 250, 500, 400, false, panel ) 
  
TabDonator = guiCreateTab( "Donator", Tabpanel ) 
  
donator_store = guiCreateButton(380, 450, 110, 40, "Donator Store", false, TabDonator) 
  
elseif source == donator_store 
   if getElementData(getLocalPlayer(), "isDonator") then 
   guiSetVisible (donator_store_window, true) 
   else 
   outputChatBox("[Donator] Sorry, this is only for donators", getLocalPlayer(), 255,0,0) 
   end 

Link to comment

now my code

panel = guiCreateWindow ( 0, 0, 0.5, 0.4, "UserPanel -ASG//", true ) 
  
Tabpanel = guiCreateTabPanel ( 450, 250, 500, 400, false, panel ) 
  
TabDonator = guiCreateTab( "Donator", Tabpanel ) 
  
donator_store = guiCreateButton(380, 450, 110, 40, "Donator Store", false, TabDonator) 
  
elseif source == donator_store 
   if getElementData(getLocalPlayer(), "isDonator") then 
   guiSetVisible (donator_store_window, true) 
   else 
   outputChatBox("[Donator] Sorry, this is only for donators", getLocalPlayer(), 255,0,0) 
   end 
  
addEventHandler ( "onClientGUIClick", donator_store, guiCreateWindow, false ) 

Link to comment

new code :D

panel = guiCreateWindow ( 0, 0, 0.5, 0.4, "UserPanel -ASG//", true ) 
  
Tabpanel = guiCreateTabPanel ( 450, 250, 500, 400, false, panel ) 
  
TabDonator = guiCreateTab( "Donator", Tabpanel ) 
  
donatebut = guiCreateButton(380, 450, 110, 40, "Donator Store", false, TabDonator) 
  
elseif source == donatebut 
   if getElementData(getLocalPlayer(), "isDonator") then 
   guiSetVisible (donator_store_window, true) 
   else 
   outputChatBox("[Donator] Sorry, this is only for donators", getLocalPlayer(), 255,0,0) 
   end 
  
addEventHandler ( "onClientGUIClick", donatebut, outputwnd, false ) 
  
  
function outputwnd ( donatebut ) 
   if button == "left" then 
        local wnd = guiCreateWindow ( 0, 0, 0.5, 0.4, "Donate System", true ) 
   end 
end 

Link to comment

Please don't make a double posts !

panel = guiCreateWindow ( 0, 0, 0.5, 0.4, "UserPanel -ASG//", true ) 
  
Tabpanel = guiCreateTabPanel ( 450, 250, 500, 400, false, panel ) 
  
TabDonator = guiCreateTab( "Donator", Tabpanel ) 
  
donatebut = guiCreateButton(380, 450, 110, 40, "Donator Store", false, TabDonator) 
function outputwnd (    ) 
   if getElementData(getLocalPlayer(), "isDonator") then 
            guiSetVisible (donator_store_window, true) 
        else 
            outputChatBox("[Donator] Sorry, this is only for donators", 255,0,0) 
   end 
end 
addEventHandler ( "onClientGUIClick", donatebut, outputwnd, false ) 
  
  

donator_store_window = is not defined any where .

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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