Jump to content

Help Me Please my User Panel


6RB|AccenT

Recommended Posts

Posted

Hi Guys ,, How Are You to day

please I need Help need Codes Hunter Reached :)

this my cod

showCursor ( true ) 
function gui ( ) 
  
  
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
local x,y =guiGetScreenSize()  
GUIEditor_Image[1] = guiCreateStaticImage(x/2-287,y/2-297,574,594,"images/minedp.png",false) 
  
GUIEditor_Image[2] = guiCreateStaticImage(2,3,572,591,"images/ldp.png",false,GUIEditor_Image[1]) 
guiSetProperty( GUIEditor_Image[2], "RiseOnClick", "False" ) 
----Name 
playerName = guiCreateLabel(160,230,300,70,'Name : ',false,GUIEditor_Image[2]) 
guiSetText ( playerName, getPlayerName(source)) 
guiLabelSetColor(playerName,255,120,0) 
function refreshStats() 
if guiGetVisible(GUIEditor_Image[2],true) then 
   playerName(playerName," "..getPlayerName(getLocalPlayer())) 
else 
   guiSetText(playerName,"Name : "..getPlayerName(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 
----Cash 
playermoney = guiCreateLabel(160,260,300,70,'Cash : ',false,GUIEditor_Image[2]) 
guiSetText ( playermoney, getPlayerMoney(source)) 
guiLabelSetColor(playermoney,255,120,0) 
function refreshStats() 
if guiGetVisible(GUIEditor_Image[2],true) then 
   playermoney(playermoney," "..getPlayerMoney(getLocalPlayer())) 
else 
   guiSetText(playermoney,"Cash : "..getPlayerMoney(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 
----Serial 
playerserial = guiCreateLabel(160,290,300,70,'Serial : ',false,GUIEditor_Image[2]) 
guiSetText ( playerserial, getPlayerSerial(source)) 
guiLabelSetColor(playerserial,255,120,0) 
function refreshStats() 
if guiGetVisible(GUIEditor_Image[2],true) then 
   playerserial(playerserial," "..getPlayerSerial(getLocalPlayer())) 
else 
   guiSetText(playerserial,"Serial : "..getPlayerSerial(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 
----Hunter Reached 
  
---- 
GUIEditor_Image[3] = guiCreateStaticImage(2,3,572,591,"images/mdp.png",false,GUIEditor_Image[1]) 
guiSetProperty( GUIEditor_Image[3], "RiseOnClick", "False" ) 
GUIEditor_Image[4] = guiCreateStaticImage(2,3,572,591,"images/gdp.png",false,GUIEditor_Image[1]) 
guiSetProperty( GUIEditor_Image[4], "RiseOnClick", "False" ) 
GUIEditor_Image[5] = guiCreateStaticImage(2,3,572,591,"images/ndp.png",false,GUIEditor_Image[1]) 
guiSetProperty( GUIEditor_Image[5], "RiseOnClick", "False" ) 
GUIEditor_Image[6] = guiCreateStaticImage(2,3,572,591,"images/sdp.png",false,GUIEditor_Image[1]) 
guiSetProperty( GUIEditor_Image[6], "RiseOnClick", "False" ) 
  
guiSetVisible( GUIEditor_Image[1] ,true) 
guiSetVisible( GUIEditor_Image[2] ,true) 
guiSetVisible( GUIEditor_Image[3] ,false) 
guiSetVisible( GUIEditor_Image[4] ,false) 
guiSetVisible( GUIEditor_Image[5] ,false) 
guiSetVisible( GUIEditor_Image[6] ,false) 
  
GUIEditor_Label[1] = guiCreateLabel(9,252,106,35,"",false,GUIEditor_Image[1]) 
GUIEditor_Label[2] = guiCreateLabel(12,304,114,30,"",false,GUIEditor_Image[1]) 
GUIEditor_Label[3] = guiCreateLabel(11,348,112,38,"",false,GUIEditor_Image[1]) 
GUIEditor_Label[4] = guiCreateLabel(11,401,115,29,"",false,GUIEditor_Image[1]) 
GUIEditor_Label[5] = guiCreateLabel(12,450,132,32,"",false,GUIEditor_Image[1]) 
  
GUIEditor_Label[6] = guiCreateLabel(13,513,55,61,"",false,GUIEditor_Image[1]) 
  
  
  
  
bindKey ( "F7", "down", show_gui ) 
end 
  
addEventHandler( "onClientResourceStart", getResourceRootElement(), gui ) 
addEventHandler( "onClientPlayerJoin", getLocalPlayer(), gui ) 
  
----------------- 
  
----------------- 
function show_gui ( ) 
        if ( guiGetVisible ( GUIEditor_Image[1] ) == true ) then 
                guiSetVisible ( GUIEditor_Image[1], false ) 
                showCursor ( false ) 
        else 
                guiSetVisible ( GUIEditor_Image[1], true ) 
                showCursor ( true ) 
        end 
end 
  
  
-------- 
  
  
function someFunction() 
if source == GUIEditor_Label[1] then 
guiSetVisible( GUIEditor_Image[2] ,true) 
guiSetVisible( GUIEditor_Image[3] ,false) 
guiSetVisible( GUIEditor_Image[4] ,false) 
guiSetVisible( GUIEditor_Image[5] ,false) 
guiSetVisible( GUIEditor_Image[6] ,false) 
  
elseif source == GUIEditor_Label[2] then 
guiSetVisible( GUIEditor_Image[2] ,false) 
guiSetVisible( GUIEditor_Image[3] ,true) 
guiSetVisible( GUIEditor_Image[4] ,false) 
guiSetVisible( GUIEditor_Image[5] ,false) 
guiSetVisible( GUIEditor_Image[6] ,false) 
  
elseif source == GUIEditor_Label[3] then 
guiSetVisible( GUIEditor_Image[2] ,false) 
guiSetVisible( GUIEditor_Image[3] ,false) 
guiSetVisible( GUIEditor_Image[4] ,true) 
guiSetVisible( GUIEditor_Image[5] ,false) 
guiSetVisible( GUIEditor_Image[6] ,false) 
  
elseif source == GUIEditor_Label[4] then 
guiSetVisible( GUIEditor_Image[2] ,false) 
guiSetVisible( GUIEditor_Image[3] ,false) 
guiSetVisible( GUIEditor_Image[4] ,false) 
guiSetVisible( GUIEditor_Image[5] ,true) 
guiSetVisible( GUIEditor_Image[6] ,false) 
  
elseif source == GUIEditor_Label[5] then 
guiSetVisible( GUIEditor_Image[2] ,false) 
guiSetVisible( GUIEditor_Image[3] ,false) 
guiSetVisible( GUIEditor_Image[4] ,false) 
guiSetVisible( GUIEditor_Image[5] ,false) 
guiSetVisible( GUIEditor_Image[6] ,true) 
  
elseif source == GUIEditor_Label[6] then 
guiSetVisible( GUIEditor_Image[1] ,false) 
showCursor ( false ) 
    end 
        end 
addEventHandler("onClientGUIClick", root, someFunction) 

this my panel

1343788145531.png

please help me

Race [10%]

LoginPanel [0%]

Hunter Area [100%]

Spectators [100%]

Level System [100%]

Info Map [100%]

Clan-Info [0%]

Guest Guest4401
Posted
Hi Guys ,, How Are You to day

Hi, I'm good. What about you?

I need Help need Codes Hunter Reached :)

Why do you show your userpanel if you need help with something else?

For hunter reached you need to make use of the event onPlayerPickUpRacePickup which you will find @ https://wiki.multitheftauto.com/wiki/Resource:Race

Posted

need time hunter reached only i cant get in resource:race please help me to get

Race [10%]

LoginPanel [0%]

Hunter Area [100%]

Spectators [100%]

Level System [100%]

Info Map [100%]

Clan-Info [0%]

Posted

Basically, he wants us to do it for him.

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.

Posted
Basically, he wants us to do it for him.

Is there a defect

Race [10%]

LoginPanel [0%]

Hunter Area [100%]

Spectators [100%]

Level System [100%]

Info Map [100%]

Clan-Info [0%]

Posted

Yes, we don't accept requests here.

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.

Posted
Yes, we don't accept requests here.

ok i need codes hunter reached i have this code only

TotalHunters = guiCreateLabel(18,285,205,15,"Total hunters reached: N/A",false,GUIEditor_Image[2]) 
  guiSetText (lblTotalHunters,"Total hunters reached: "..totalHunters) 
  

Race [10%]

LoginPanel [0%]

Hunter Area [100%]

Spectators [100%]

Level System [100%]

Info Map [100%]

Clan-Info [0%]

Posted

You have nothing else but the interface code, you must use the custom race event:

onPlayerPickUpRacePickup 

and check if the pickup type is "vehiclechange" and if the model is 425.

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.

Posted
You have nothing else but the interface code, you must use the custom race event:
onPlayerPickUpRacePickup 

and check if the pickup type is "vehiclechange" and if the model is 425.

ohh thanks solid

Race [10%]

LoginPanel [0%]

Hunter Area [100%]

Spectators [100%]

Level System [100%]

Info Map [100%]

Clan-Info [0%]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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