Tete omar Posted July 6, 2012 Share Posted July 6, 2012 when some one hit the marker the Gui-window show up for all players ??????? server side local Marker2 = createMarker ( -1638.3317871094, -2239.3054199219, 30.4765625, "cylinder", 1.29999995, 255, 255, 0, 255 ) function hitthiselement() triggerClientEvent("hitmymarker", getRootElement(), Marker2) end addEventHandler("onMarkerHit", Marker2, hitthiselement) client side addEvent("hitmymarker", true) function hitmymarker(Marker2) guiSetVisible(GUIEditor_Window[2], true) showCursor(true) guiSetInputEnabled(false) end addEventHandler('hitmymarker',getRootElement(),hitmymarker) GUIEditor_Window[2] = guiCreateWindow(198,228,697,409,"> - | The Farmer House | - <",false) guiSetAlpha(GUIEditor_Window[2],1) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,22,679,368,false,GUIEditor_Window[2]) GUIEditor_Tab[2] = guiCreateTab("English",GUIEditor_TabPanel[1]) GUIEditor_Label[8] = guiCreateLabel(223,11,165,18,"The Farmer House",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiLabelSetHorizontalAlign(GUIEditor_Label[8],"center",false) guiSetFont(GUIEditor_Label[8],"default-bold-small") GUIEditor_Image[4] = guiCreateStaticImage(14,31,656,156,"images/farmerhouse.PNG",false,GUIEditor_Tab[2]) GUIEditor_Label[9] = guiCreateLabel(11,191,655,21,"This house is your house and your friends house .. you must save and take this house as possible as you can",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[9],255,0,0) guiLabelSetHorizontalAlign(GUIEditor_Label[9],"center",false) guiSetFont(GUIEditor_Label[9],"default-bold-small") GUIEditor_Label[10] = guiCreateLabel(22,209,656,25,"After your occupation of this house the door will be blocked that the zombies can't get in this house",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[10],255,0,0) guiLabelSetHorizontalAlign(GUIEditor_Label[10],"center",false) guiSetFont(GUIEditor_Label[10],"default-bold-small") GUIEditor_Image[5] = guiCreateStaticImage(5,226,78,96,"images/protectiondoor.PNG",false,GUIEditor_Tab[2]) GUIEditor_Label[11] = guiCreateLabel(4,322,210,16,"the house's entrance with out a door",false,GUIEditor_Tab[2]) GUIEditor_Label[12] = guiCreateLabel(16,227,655,15,"You must save this house to keep your self unharmed but there's a windows that you can kill the zombies through it",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[12],255,0,0) guiSetFont(GUIEditor_Label[12],"default-bold-small") GUIEditor_Image[6] = guiCreateStaticImage(417,245,251,77,"images/protectwindow.PNG",false,GUIEditor_Tab[2]) GUIEditor_Label[13] = guiCreateLabel(414,320,264,20,"the windows",false,GUIEditor_Tab[2]) guiLabelSetHorizontalAlign(GUIEditor_Label[13],"center",false) GUIEditor_Button[4] = guiCreateButton(564,6,105,26,"start mession",false,GUIEditor_Tab[2]) guiSetVisible(GUIEditor_Window[2], false) please i want to fix this problem for fast !!!! Link to comment
TAPL Posted July 7, 2012 Share Posted July 7, 2012 local Marker2 = createMarker ( -1638.3317871094, -2239.3054199219, 30.4765625, "cylinder", 1.29999995, 255, 255, 0, 255 ) function hitthiselement(player) triggerClientEvent(player,"hitmymarker", player) end addEventHandler("onMarkerHit", Marker2, hitthiselement) 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