6RB|AccenT Posted August 1, 2012 Share Posted August 1, 2012 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 please help me Link to comment
Guest Guest4401 Posted August 1, 2012 Share Posted August 1, 2012 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 Link to comment
6RB|AccenT Posted August 1, 2012 Author Share Posted August 1, 2012 need time hunter reached only i cant get in resource:race please help me to get Link to comment
Castillo Posted August 1, 2012 Share Posted August 1, 2012 Basically, he wants us to do it for him. Link to comment
6RB|AccenT Posted August 1, 2012 Author Share Posted August 1, 2012 Basically, he wants us to do it for him. Is there a defect Link to comment
Castillo Posted August 1, 2012 Share Posted August 1, 2012 Yes, we don't accept requests here. Link to comment
6RB|AccenT Posted August 1, 2012 Author Share Posted August 1, 2012 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) Link to comment
Castillo Posted August 1, 2012 Share Posted August 1, 2012 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. Link to comment
6RB|AccenT Posted August 1, 2012 Author Share Posted August 1, 2012 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now