golanu21 Posted March 27, 2013 Posted March 27, 2013 GUIEditor = { label = {}, } fereastra = guiCreateWindow(684, 359, 449, 424, "Ls/Sf/Lv", false) guiWindowSetSizable(fereastra, false) guiSetAlpha(fereastra, 0.89) GUIEditor.label[1] = guiCreateLabel(8, 33, 353, 54, "Incotro sefule?", false, fereastra) guiSetFont(GUIEditor.label[1], "sa-header") LS = guiCreateButton(9, 129, 431, 99, "Los Santos", false, fereastra) guiSetProperty(LS, "NormalTextColour", "FFAAAAAA") SF = guiCreateButton(10, 228, 430, 104, "San Fierro", false, fereastra) guiSetProperty(SF, "NormalTextColour", "FFAAAAAA") LV = guiCreateButton(9, 332, 431, 83, "Las Venturas", false, fereastra) guiSetProperty(LV, "NormalTextColour", "FFAAAAAA") X = guiCreateButton(397, 23, 42, 33, "X", false, fereastra) guiSetProperty(X, "NormalTextColour", "FFAAAAAA") PI = guiCreateButton(9, 84, 431, 44, "Pirate Island", false, fereastra) guiSetProperty(PI, "NormalTextColour", "FFAAAAAA") guiSetVisible(fereastra, false) --script-- --GUI VISIBILE --*Marker1 addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) i make that, and a player enter in marker .. the gui has visibile for all players [Dev]BloWnRPG - We BloW the World [1%]
ZL|LuCaS Posted March 27, 2013 Posted March 27, 2013 GUIEditor = { label = {}, } fereastra = guiCreateWindow(684, 359, 449, 424, "Ls/Sf/Lv", false) guiWindowSetSizable(fereastra, false) guiSetAlpha(fereastra, 0.89) GUIEditor.label[1] = guiCreateLabel(8, 33, 353, 54, "Incotro sefule?", false, fereastra) guiSetFont(GUIEditor.label[1], "sa-header") LS = guiCreateButton(9, 129, 431, 99, "Los Santos", false, fereastra) guiSetProperty(LS, "NormalTextColour", "FFAAAAAA") SF = guiCreateButton(10, 228, 430, 104, "San Fierro", false, fereastra) guiSetProperty(SF, "NormalTextColour", "FFAAAAAA") LV = guiCreateButton(9, 332, 431, 83, "Las Venturas", false, fereastra) guiSetProperty(LV, "NormalTextColour", "FFAAAAAA") X = guiCreateButton(397, 23, 42, 33, "X", false, fereastra) guiSetProperty(X, "NormalTextColour", "FFAAAAAA") PI = guiCreateButton(9, 84, 431, 44, "Pirate Island", false, fereastra) guiSetProperty(PI, "NormalTextColour", "FFAAAAAA") guiSetVisible(fereastra, false) --script-- --GUI VISIBILE --*Marker1 addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) i make that, and a player enter in marker .. the gui has visibile for all players show the complete code MTA Scripters. ♥♥♥Beijinhos♥♥♥
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 WTF... all what id do with gui .. has visibile for all players... in any script , [Dev]BloWnRPG - We BloW the World [1%]
PaiN^ Posted March 27, 2013 Posted March 27, 2013 Where do you create Marker1 ? " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 in ... very far from the map... [Dev]BloWnRPG - We BloW the World [1%]
ZL|LuCaS Posted March 27, 2013 Posted March 27, 2013 WTF... all what id do with gui .. has visibile for all players... in any script , you'll have to post the full code MTA Scripters. ♥♥♥Beijinhos♥♥♥
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 but in any script ..where exist a gui... "command, or marker", the gui is visbile for all [Dev]BloWnRPG - We BloW the World [1%]
PaiN^ Posted March 27, 2013 Posted March 27, 2013 I don't understand ! I meant by where client side or server side ? in or out of the resource ? " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 man ... i have a gamemode... in all script where i have a gui . whit markers , command etc.. the gui become visible to everyone [Dev]BloWnRPG - We BloW the World [1%]
iPrestege Posted March 27, 2013 Posted March 27, 2013 You have to create the marker in the same script .
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 You have to create the marker in the same script . it is [Dev]BloWnRPG - We BloW the World [1%]
PaiN^ Posted March 27, 2013 Posted March 27, 2013 Then show us where, Which side client or server -__-" " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 client side [Dev]BloWnRPG - We BloW the World [1%]
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 and i have .. a downloaded script from communtity with gui... and this is resulted [Dev]BloWnRPG - We BloW the World [1%]
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 someone ? [Dev]BloWnRPG - We BloW the World [1%]
denny199 Posted March 27, 2013 Posted March 27, 2013 addEventHandler("onClientMarkerHit", Marker1, function ( hitPlayer, matchingDimension) if ( hitPlayer == localPlayer ) then guiSetVisible(fereastra, true) showCursor(true) end end) Sometimes I dream about cheese
golanu21 Posted March 27, 2013 Author Posted March 27, 2013 addEventHandler("onClientMarkerHit", Marker1, function ( hitPlayer, matchingDimension) if ( hitPlayer == localPlayer ) then guiSetVisible(fereastra, true) showCursor(true) end end) this is man.. hitElement forgotten, thanx man [Dev]BloWnRPG - We BloW the World [1%]
codeluaeveryday Posted March 27, 2013 Posted March 27, 2013 INCORRECT: addEventHandler("onClientMarkerHit", Marker1, function () guiSetVisible(fereastra, true) showCursor(true) end) This is triggered when anyone hits the marker, so no wonder this is happening, so use this. CORRECT: addEventHandler("onClientMarkerHit", Marker1, function (hitPlayer, matchingDimension) if hitPlayer == localPlayer then guiSetVisible(fereastra, true) showCursor(true) end end) Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
denny199 Posted March 27, 2013 Posted March 27, 2013 it's already solved dude... Sometimes I dream about cheese
codeluaeveryday Posted March 27, 2013 Posted March 27, 2013 Woops, didn't see the second page. Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
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