HoLsTeN Posted October 17, 2010 Share Posted October 17, 2010 Again hi all i make this gui but in the server it is not show no eror plzz see and help me function gui ( ) window = guiCreateWindow (0,316,353,283, "king-OF-sniper", true ) guiWindowSetSizable ( window, false ) panel = guiCreateTabPanel (9,19,335,255, true, window ) weapon = guiCreateTab( "Shop", panel ) sendtap = guiCreateTab( "Send money", panel ) welcome = guiCreateLabel (147,339,69, "Welcome "..getPlayerName ( getLocalPlayer () ), true, window ) money = guiCreateLabel (256,341,68,15, "your money $"..getPlayerMoney ( source ), true, window ) guiCreateStaticImage(120,95,214,133, "image.png", false, sendtap ) guiCreateLabel (173,4,75,20, "Player:", true, sendtap ) guiCreateLabel (170,33,75,20, "Money:", true, sendtap ) guiCreateLabel ( 0.3, 0.05, 0.8, 0.12, "In shop you can buy weapons!!", true, weapon ) guiCreateLabel ( 0.21, 0.05, 0.8, 0.12, "here you can send your money to other players!!", true, sendtap ) editBox1 = guiCreateEdit(212,4,117,25, "", true, sendtap ) editBox2 = guiCreateEdit(212,30,117,25, "", true, sendtap ) send = guiCreateButton (234,61,65,24, "Send!", true, sendtap ) hp = guiCreateButton (1,2,97,52, "HP ---> $1000", true, weapon ) armor = guiCreateButton (0,60,97,52, "Armor ---> $1000", true, weapon ) sniper = guiCreateButton (0,118,97,52, "Sniper ---> $800", true, weapon ) tec9 = guiCreateButton (0,175,97,52, "tec-9 ---> $3500", true, weapon ) m4 = guiCreateButton (117,3,97,52, "M4 ---> $700", true, weapon ) ak47 = guiCreateButton (116,61,97,52, "Ak47 ---> $600", true, weapon ) molotov = guiCreateButton (116,120,97,52, "Molotov ---> $15000", true, weapon ) camera = guiCreateButton (116,176,97,52, "Camera ---> $100", true, weapon ) bindKey ( "F6", "down", show_gui ) addEventHandler ( "onClientGUIClick", hp, hp1, false ) addEventHandler ( "onClientGUIClick", armor, armor1, false ) addEventHandler ( "onClientGUIClick", sniper, sniper1, false ) addEventHandler ( "onClientGUIClick", tec9, tec91, false ) addEventHandler ( "onClientGUIClick", m4, m41, false ) addEventHandler ( "onClientGUIClick", ak47, ak471, false ) addEventHandler ( "onClientGUIClick", molotov, molotov1, false ) addEventHandler ( "onClientGUIClick", camera, camera1, false ) addEventHandler ( "onClientGUIClick", send, send1, false ) end addEventHandler ( "onClientResourceStart", getResourceRootElement ( getThisResource() ), gui ) -------------- function show_gui ( ) guiSetText ( welcome, "Welcome "..getPlayerName ( getLocalPlayer () ) ) guiSetText ( money, "your money $"..getPlayerMoney ( source ) ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor ( false ) guiGridListRemoveColumn ( playerList, column ) guiSetVisible ( playerList, false ) else guiSetVisible ( window, true ) showCursor ( true ) playerList = guiCreateGridList (2,3,117,227, true, sendtap ) column = guiGridListAddColumn( playerList, "Players Names", 0.85 ) for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler( "onClientGUIDoubleClick", playerList, wew, false ) end end function close_gui ( ) showCursor ( false ) guiSetVisible ( window, false ) end addEventHandler ( "onClientResourceStart", getRootElement(), close_gui ) --------------- function wew ( ) selectedRow, selectedCol = guiGridListGetSelectedItem( playerList ) playerName = guiGridListGetItemText( playerList, selectedRow, selectedCol ) guiSetText ( editBox1, playerName ) end --------------- function hp1 ( ) triggerServerEvent ( "onHP", getLocalPlayer() ) end function armor1 ( ) triggerServerEvent ( "onArmor", getLocalPlayer() ) end function sniper1 ( ) triggerServerEvent ( "onSniper", getLocalPlayer() ) end function tec91 ( ) triggerServerEvent ( "onTec9", getLocalPlayer() ) end function m41 ( ) triggerServerEvent ( "onM4", getLocalPlayer() ) end function ak471 ( ) triggerServerEvent ( "onAk47", getLocalPlayer() ) end function molotov1 ( ) triggerServerEvent ( "onMolotov", getLocalPlayer() ) end function camera1 ( ) triggerServerEvent ( "onCamera", getLocalPlayer() ) end function send1 ( ) eee = guiGetText ( editBox1 ) ddd = guiGetText ( editBox2 ) triggerServerEvent ( "onSend", getLocalPlayer(), eee, ddd ) end i make this gui ^^ plz help >< Link to comment
dzek (varez) Posted October 17, 2010 Share Posted October 17, 2010 STOLEN. We can see if you stole something or not. Just stop trying. Topic locked. Link to comment
Recommended Posts