xXNemesiSXx
Members-
Posts
54 -
Joined
-
Last visited
Everything posted by xXNemesiSXx
-
Ok now i can see the window, but when i click on a button the window won't close and it doesn't spawn me in the coords that i've typed... i'm becoming crazy !! this is the code: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} function startup() GUIEditor_Window[1] = guiCreateWindow(0,0,0.99,1,"...SCEGLI UNA FAZIONE...",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Memo[1] = guiCreateMemo(0.0164,0.0517,0.5404,0.56,"21 dicembre 2012...\nLa data piu' conosciuta sulla faccia di\nquesto misero pianeta.\nFino ad un anno prima andava tutto bene,\nfino a quando, per i classici motivi\ndi soldi, non scoppio' l' ennesima,\ndisastrosa, guerra mondiale.\nFurono usate armi biologiche e nucleari,\nfino ad ottenere questo cazzo di risultato...\nUn mondo di merda ricoperto da zombies di merda\ntenuti in vita da quelle radiazioni e da quei composti \nchimici DI MERDA.\nNegli anni seguenti si sono formate diverse comunita':\ngli HUNTERS, i Reaper e gli Stalkers.\nIl tuo compito e' quello di entrare a fare parte di uno di questi\ngruppi e di ammazzare quei fottuti zombies.\nChe cosa stai aspettando ancora? e' il tuo momento.\n",true,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(0.5101,0.1017,0.4836,0.4767,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.0278,0.8267,0.2374,0.1217,"HUNTERS",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3851,0.8267,0.2374,0.1217,"REAPER",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.7172,0.8267,0.2374,0.1217,"STALKERS",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.2841,0.6783,0.4306,0.0717,"VOGLIO FARE PARTE DEI:",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) end addEventHandler("onClientResourceStart",getResourceRootElement(),startup) function visibile() if (guiGetVisible(GUIEditor_Window[1])) then showCursor(false) guiSetVisible(GUIEditor_Window[1],false) else showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), visibile) function warpbasehunters () setElementPosition ( getLocalPlayer(), 40, 40, 40 ) guiSetVisible(GUIEditor_Window[1],false) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], warpbasehunters, true ) function warpbasereaper () setElementPosition ( getLocalPlayer(), 10, 10, 20 ) guiSetVisible(GUIEditor_Window[1],false) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], warpbasereaper, true ) function warpbasestalkers () setElementPosition ( getLocalPlayer(), 0, 0, 0 ) guiSetVisible(GUIEditor_Window[1],false) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[3], warpbasestalkers, true ) function CreateSelectorWindow() wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Seleziona",true,wdwselector) guiSetVisible(wdwselector, false) end function selezionaskin () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getLocalPlayer()) end showCursor(true) end function clientSkinSelect(button) guiSetVisible(wdwselector, false) guiSetVisible(memo, false) showCursor(false) triggerServerEvent("SkinSelected", getLocalPlayer()) end function clientSkinRight(button) triggerServerEvent("SkinRight", getLocalPlayer()) end function clientSkinLeft(button) triggerServerEvent("SkinLeft", getLocalPlayer()) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], selezionaskin, false ) addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], selezionaskin, false ) addEventHandler ( "onClientGUIClick", GUIEditor_Button[3], selezionaskin, false )
-
I will try it ;P
-
Please... help me!!
-
Because... You'r welcome Because... You'r welcome but now i have another problem... when i start the resource i can't see the window... this is the script (i also added a skin selector by MasterTobi) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} function startup() GUIEditor_Window[1] = guiCreateWindow(0,0,0.99,1,"...SCEGLI UNA FAZIONE...",true) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Memo[1] = guiCreateMemo(0.0164,0.0517,0.5404,0.56,"21 dicembre 2012...\nLa data piu' conosciuta sulla faccia di\nquesto misero pianeta.\nFino ad un anno prima andava tutto bene,\nfino a quando, per i classici motivi\ndi soldi, non scoppio' l' ennesima,\ndisastrosa, guerra mondiale.\nFurono usate armi biologiche e nucleari,\nfino ad ottenere questo cazzo di risultato...\nUn mondo di merda ricoperto da zombies di merda\ntenuti in vita da quelle radiazioni e da quei composti \nchimici DI MERDA.\nNegli anni seguenti si sono formate diverse comunita':\ngli HUNTERS, i Reaper e gli Stalkers.\nIl tuo compito e' quello di entrare a fare parte di uno di questi\ngruppi e di ammazzare quei fottuti zombies.\nChe cosa stai aspettando ancora? e' il tuo momento.\n",true,GUIEditor_Window[1]) GUIEditor_Image[1] = guiCreateStaticImage(0.5101,0.1017,0.4836,0.4767,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.0278,0.8267,0.2374,0.1217,"HUNTERS",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.3851,0.8267,0.2374,0.1217,"REAPER",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.7172,0.8267,0.2374,0.1217,"STALKERS",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.2841,0.6783,0.4306,0.0717,"VOGLIO FARE PARTE DEI:",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) addEventHandler("onClientResourceStart",getResourceRootElement(),startup) function visibile() if (guiGetVisible(GUIEditor_Window[1])) then showCursor(false) guiSetVisible(GUIEditor_Window[1],false) else showCursor(true) guiSetVisible(GUIEditor_Window[1],true) end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), visibile) function warpbasehunters () setElementPosition ( getLocalPlayer(), 40, 40, 40 ) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], warpbasehunters, false ) function warpbasereaper () setElementPosition ( getLocalPlayer(), 10, 10, 20 ) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], warpbasereaper, false ) function warpbasestalkers () setElementPosition ( getLocalPlayer(), 0, 0, 0 ) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[3], warpbasestalkers, false ) function CreateSelectorWindow() wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Seleziona",true,wdwselector) guiSetVisible(wdwselector, false) end function selezionaskin () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getLocalPlayer()) end showCursor(true) end function clientSkinSelect(button) guiSetVisible(wdwselector, false) guiSetVisible(memo, false) showCursor(false) triggerServerEvent("SkinSelected", getLocalPlayer()) end function clientSkinRight(button) triggerServerEvent("SkinRight", getLocalPlayer()) end function clientSkinLeft(button) triggerServerEvent("SkinLeft", getLocalPlayer()) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], selezionaskin, false ) addEventHandler ( "onClientGUIClick", GUIEditor_Button[2], selezionaskin, false ) addEventHandler ( "onClientGUIClick", GUIEditor_Button[3], selezionaskin, false )
-
Thanks a lot !! i know that guieditor is simple to use but yesterday i had a problem... i could not see the print code function in the menu' !!
-
Sorry for the bad english... i'm italian so... i was trying to create a gui window with guieditor resource, it is very easy! but when i completed my window, i could not save it... so i've made a screen of my gui... http://img121.imageshack.us/i/fazioni.png/ can anyone make it for me ?? don't write the text in the white box, only make the gui without any word, title etc... i will say the real autor of the gui... [ This is a team menu' form my server ]
-
OK... it works perfectly, but i don't know how to add skins to the menu'... can you help me ?
-
Tomorrow i will try it
-
So... now i've to edit a resource that isn't made by me... look here: https://community.multitheftauto.com/index.php?p= ... ils&id=593 i want to set that you must select your skin at the join... can anyone help me? here there is the script: c_skinselect.lua function CreateSelectorWindow() wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Select",true,wdwselector) guiSetVisible(wdwselector, false) end function selectorenable () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getLocalPlayer()) end showCursor(true) end addCommandHandler("skin", selectorenable, false, false) function clientSkinSelect(button) guiSetVisible(wdwselector, false) showCursor(false) triggerServerEvent("SkinSelected", getLocalPlayer()) end function clientSkinRight(button) triggerServerEvent("SkinRight", getLocalPlayer()) end function clientSkinLeft(button) triggerServerEvent("SkinLeft", getLocalPlayer()) end s_skinselect: function camf() local px,py,pz = getElementPosition( source ) local rot = setPedRotation(source, 1) setCameraMatrix( source, px, py+2, pz, px, py, pz) end addEvent("FrontCamera", true) addEventHandler("FrontCamera", getRootElement(), camf) function selected() fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Skin erflogreich geändert", source) end addEvent("SkinSelected", true) addEventHandler("SkinSelected", getRootElement(), selected) function skinright() local skin = getPedSkin(source) if (skin == 0) then setPedSkin(client, 7) elseif (skin == 7) then setPedSkin(client, 9) elseif (skin == 41) then setPedSkin(client, 43) elseif (skin == 64) then setPedSkin(client, 66) elseif (skin == 85) then setPedSkin(client, 87) elseif(skin == 118) then setPedSkin(client, 120) elseif(skin == 148) then setPedSkin(client, 150) elseif(skin == 207) then setPedSkin(client, 209) elseif(skin == 238) then setPedSkin(client, 240) elseif(skin == 264) then setPedSkin(client, 274) elseif(skin == 288) then setPedSkin(client, 0) else setPedSkin(source, skin+1) end end addEvent("SkinRight", true) addEventHandler("SkinRight", getRootElement(), skinright) function skinleft() local skin = getPedSkin(source) if (skin == 7) then setPedSkin(client, 0) elseif (skin == 9) then setPedSkin(client, 7) elseif (skin == 43) then setPedSkin(client, 41) elseif (skin == 66) then setPedSkin(client, 64) elseif (skin == 87) then setPedSkin(client, 85) elseif(skin == 120) then setPedSkin(client, 118) elseif(skin == 150) then setPedSkin(client, 148) elseif(skin == 209) then setPedSkin(client, 207) elseif(skin == 240) then setPedSkin(client, 238) elseif(skin == 274) then setPedSkin(client, 264) elseif(skin == 0) then setPedSkin(client, 288) else setPedSkin(source, skin-1) end end addEvent("SkinLeft", true) addEventHandler("SkinLeft", getRootElement(), skinleft)
-
Sorry if i do another post, but now i've to ask how to destroy a marker called "energyderiv"... to create a marker i can use createMarker, but to destroy it?
-
thanks a lot !! but ...look here... do killPed(players) end why you used killPed and not killPlayer or something like that?
-
Sorry for my bad english, i'm italian I don't know how i can get all players and all vehicles in a lua script... i want to kill and destroy all players and all vehicles, but before to do this i have to get them. how ca i do this ?
-
-.- -.- -.- !! i'm very stupid !! -.- -.- -.- now it works, you are the best !!
-
!? to test ?! yes, i've tested it, and it wont work...
-
thanks a lot... will it work now ? --Markers degli ospedali-- local ospsf = createMarker( -2655.0173339844, 639.79187011719, 13.404554367065, 'cylinder', 1.5, 255, 0, 0, 150 ) local ospls = createMarker( 2025.3673095703, -1402.7464599609, 16.185314178467, 'cylinder', 1.5, 255, 0, 0, 150 ) local osplv = createMarker( 1610.2142333984, 1819.5577392578, 9.7780055999756, 'cylinder', 1.5, 255, 0, 0, 150 ) -------------------------- --Ripristino della salute a Los Santos-- function Salutesf ( hitPlayer, matchingDimension ) local localPlayer = getLocalPlayer() setElementHealth ( localPlayer, 100 ) end addEventHandler( "onClientMarkerHit", ospls, Salutels ) ---------------------------------------- --Ripristino della salute a San Fierro-- function Salutesf ( hitPlayer, matchingDimension ) local localPlayer = getLocalPlayer() setElementHealth ( localPlayer, 100 ) end addEventHandler( "onClientMarkerHit", ospsf, Salutesf ) ---------------------------------------- --Ripristino della salute a Las Venturas-- function Salutelv ( hitPlayer, matchingDimension ) local localPlayer = getLocalPlayer() setElementHealth ( localPlayer, 100 ) end addEventHandler( "onClientMarkerHit", osplv, Salutelv ) ------------------------------------------
-
which is the client side equivalent of "onMarkerHit" ?
-
so... this is my first script... the markers appear, but they don't give me the healt.. the script: --Markers degli ospedali-- local ospsf = createMarker( -2655.0173339844, 639.79187011719, 13.404554367065, 'cylinder', 1.5, 255, 0, 0, 150 ) local ospls = createMarker( 2025.3673095703, -1402.7464599609, 16.185314178467, 'cylinder', 1.5, 255, 0, 0, 150 ) local osplv = createMarker( 1610.2142333984, 1819.5577392578, 9.7780055999756, 'cylinder', 1.5, 255, 0, 0, 150 ) -------------------------- --Ripristino della salute a Los Santos-- function Salutels( hitPlayer ) local localPlayer = getLocalPlayer() setElementHealth ( localPlayer, 100 ) end addEventHandler( "onMarkerHit", ospls, Salutels ) ---------------------------------------- --Ripristino della salute a San Fierro-- function Salutesf( hitPlayer ) local localPlayer = getLocalPlayer() setElementHealth ( localPlayer, 100 ) end addEventHandler( "onMarkerHit", ospsf, Salutesf ) ---------------------------------------- --Ripristino della salute a Las Venturas-- function Salutelv( hitPlayer ) local localPlayer = getLocalPlayer() setElementHealth ( localPlayer, 100 ) end addEventHandler( "onMarkerHit", osplv, Salutelv ) ------------------------------------------ where I went wrong? sorry, i'm an italian noob...
-
thank you very much
-
Sorry for my bad english, i'm Italian but... which script i can use to set players healt ? i've a roleplay server, and i wanna make a reasource that when you go to an ospital there is a marker which give you the healt, but i don't know which command use to set players healt...
-
My server, hosted on serverffs dont appear in the list
xXNemesiSXx replied to xXNemesiSXx's question in Server
no, you do not need more now everything works perfectly thank you a lot for your help -
My server, hosted on serverffs dont appear in the list
xXNemesiSXx replied to xXNemesiSXx's question in Server
yesss now i'm an admin... but i bought the server two days ago and i don't see the server in the list.... but i will wait more time... bot now there is a new problem... when i download the new resources i get an error message: Timedout was reached. error downloading requested files -
I bought a server on ServerFFS , but it don't works very well: It doesn't appear in the server list... I think that the problem is a port that isn't open... mtaserver.conf <!-- This parameter can be used to make the server report to Game-Monitor master servers, allowing it to be visible in the ingame server browser. An additional UDP port needs to be available for this to work (value from <serverport> + 123 , so on a default <serverport> value 22003 the right port will be 22126 ). Available values: 0 - disabled , 1 - enabled. Optional parameter, defaults to 0. --> <ase>1</ase> BUT, HOW CAN I OPEN THIS PORT FROM MY PC ?? I have also another problem.... : i can't add users...! so i can't become an admin of my server... I add users in accounts.xml file with this sintax: <accounts> <autologin>0</autologin> <account name="Console" password="" /> <account name="xxxx" password="xxxx" /> </account> <account name="xxxx" password="xxxx" /> </account> <account name="xxxx" password="xxxx" /> </account> <account name="xxxx" password="xxxx" /> </account> </accounts> And when I login with my account the server say me: Unknown account for "xxxx" HOW CAN I ADD USERS TO MY SERVER ?? Sorry for my bad english, i'm Italian
-
will the newest resources work on MTA:SA 1.0 ?
xXNemesiSXx replied to xXNemesiSXx's question in Server
Yes, but are you sure that When ServerFFS say that they host 1.0 they mean 1.0.X ? Look at this https://www.serverffs.com/gameservers/2/MTASA_Server/ Yes serverFFS does host 1.0.X (1.0.4 currently) servers. 1.0 is just a major release name. Ok, thanks a lot I will host my server on ServerFFS -
will the newest resources work on MTA:SA 1.0 ?
xXNemesiSXx replied to xXNemesiSXx's question in Server
Yes, but are you sure that When ServerFFS say that they host 1.0 they mean 1.0.X ? Look at this https://www.serverffs.com/gameservers/2/MTASA_Server/
