-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
It must be that the script is set as a server side instead of client side.
-
You can't do it with that script as far as I know.
-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.3037,0.75,0.4185,0.2051,"GUI Spawns",true) guiWindowSetMovable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,59,97,33,"Hombre",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(121,59,97,33,"Mujer",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(230,59,93,33,"Clan ODST",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(14,26,240,26,"Elige tu Spawn",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[4] = guiCreateButton(370,-4082,0,600,"",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(332,59,87,33,"[LPK] Clan",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(198,30,218,15,"BioHaZard Hell Zombies GUI",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Button[6] = guiCreateButton(9,110,97,33,"UCA Clan",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.4121,0.575,0.1943,0.18,"Info Spawn",true) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Memo[1] = guiCreateMemo(9,22,181,77,"",false,GUIEditor_Window[2]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) addEvent("onVisibleSpawnGUI",true) addEventHandler("onVisibleSpawnGUI",root,function() guiSetVisible(GUIEditor_Window[1], true) guiSetVisible(GUIEditor_Window[2], true) showCursor(true) addEventHandler("onClientGUIClick", guiRoot,buttons,true) addEventHandler("onClientMouseEnter",root,mEnter) addEventHandler("onClientMouseLeave",root,mExit) end) function buttons() if (source == GUIEditor_Button[1]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_hombre",localPlayer,"Hombre") elseif (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_mujer",localPlayer,"Mujer") elseif (source == GUIEditor_Button[3]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_odst",localPlayer,"ODST") elseif( source == GUIEditor_Button[5]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_LPK",localPlayer,"LPK") elseif( source == GUIEditor_Button[6]) then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) showCursor(false) triggerServerEvent ("spawnPlayer_UCA",localPlayer,"UCA") end end function mostrarspawn() guiSetVisible (GUIEditor_Window[1],true) guiSetVisible (GUIEditor_Window[2],true) showCursor (true) end addEvent("spawng", true) addEventHandler("spawng",root, mostrarspawn) function mEnter() if (source == GUIEditor_Button[1]) then guiSetText(GUIEditor_Memo[1], "Aprieta este boton si eres Hombre y no tienes ningun clan en especifico") elseif (source == GUIEditor_Button[2]) then guiSetText(GUIEditor_Memo[1], "Aprieta este boton si eres Mujer y no tienes ningun clan en especifico") elseif (source == GUIEditor_Button[3]) then guiSetText(GUIEditor_Memo[1], "Solo si eres de ODST clan Aprieta este boton sino es posible ser kickeado") elseif (source == GUIEditor_Button[5]) then guiSetText(GUIEditor_Memo[1], "LPK Latins Pro Killers Clan Privado Solo Para Pro Killers") elseif (source == GUIEditor_Button[6]) then guiSetText(GUIEditor_Memo[1], "UCA Umbrella Corporation Clan Leader : Drake " ) end end function mExit() if (source == GUIEditor_Button[1]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[2]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[3]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[5]) then guiSetText(GUIEditor_Memo[1], "") elseif (source == GUIEditor_Button[6]) then guiSetText(GUIEditor_Memo[1], "") end end addEvent("setTheText", true) addEventHandler("setTheText",root,function() guiSetText(GUIEditor_Memo[1], "No Eres del Clan") guiSetVisible(GUIEditor_Window[1],true) guiSetVisible(GUIEditor_Window[2],true) showCursor(true) end)
-
What exactly doesn't work?
-
You wish, I gave you the needed functions, you must learn about them and implement them in your script.
-
Everything posted above makes no sense ( no offense ). local animations = { { "RIOT", "RIOT_ANGRY" }, { "RIOT", "RIOT_ANGRY_B" }, { "RIOT", "RIOT_challenge" }, { "RIOT", "RIOT_CHANT" }, { "RIOT", "RIOT_FUKU" }, { "RIOT", "RIOT_PUNCHES" }, { "RIOT", "RIOT_shout" } } bindKey ( "i", "down", function ( ) if ( guiGetVisible ( guiElement1 ) == false ) then guiSetVisible ( guiElement1, true ) showCursor ( true ) end end ) addEventHandler( "onClientResourceStart", resourceRoot, function ( ) for index, animation in ipairs ( animations ) do local row = guiGridListAddRow ( guiElement2 ) guiGridListSetItemText ( guiElement2, row, 1, tostring ( animation [ 1 ] ), false, false ) guiGridListSetItemText ( guiElement2, row, 2, tostring ( animation [ 2 ] ), false, false ) end end ) addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == guiElement3 ) then local row, col = guiGridListGetSelectedItem ( guiElement2 ) if ( row and col and row ~= -1 and col ~= -1 ) then local block = guiGridListGetItemText ( guiElement2, row, 1 ) local animation = guiGridListGetItemText ( guiElement2, row, 2 ) if ( block ) and ( animation ) then triggerServerEvent ( "onElementAnimation", localPlayer, block, animation ) end end elseif ( source == guiElement4 ) then guiSetVisible ( guiElement1, false ) showCursor ( false ) end end )
-
He doesn't want that Cadu12, read the posts above.
-
He want's to show the image of the selected weapon. @MOJRM-511: You have to use the following functions: guiCreateStaticImage guiGridListGetSelectedItem guiGridListGetItemText guiStaticImageLoadImage
-
You're welcome.
-
Topic moved to "Scripting" section.
-
Maybe posting the whole script would help. P.S: Never use player names, players keep's changing their name, better use the player element itself.
-
https://community.multitheftauto.com/ind ... ls&id=1520 Lo encontre en un segundo, era tan dificl buscarlo?
-
In "Settings -> Interface" I set the "MTA Blue ( default )".
-
Post the meta.xml.
-
@Blazy: This is the screenshot: http://i.imgur.com/88hD2.jpg It works fine here, are you sure that your XML path is right?
-
Great, so you expect us to know the bug like that? give more information if you really want help.
-
function checkjourney ( ) idvehiculo = getElementByID ( "Journey1" ) addEventHandler ( "onVehicleEnter", idvehiculo, journeyin ) markador = createMarker ( 182.19999694824, -93.400001525879, 546.20001220703, 'cylinder', 1.0, 0, 0, 255, 155 ) setElementInterior ( markador, 15 ) addEventHandler ( "onMarkerHit", markador, journeyout ) end addEventHandler ( "onResourceStart", resourceRoot, checkjourney ) function journeyin( thePlayer, seat, jacked ) if ( seat ~= 0 ) then setElementPosition ( thePlayer, 182.19999694824, -93.400001525879, 546.20001220703 ) setElementInterior ( thePlayer, 15 ) setElementDimension ( thePlayer, 0 ) end end function journeyout ( hitElement, matchingDimension ) local vx, vy, vz = getElementPosition ( idvehiculo ) setElementPosition ( hitElement, vx, vy + 2,vz ) end Tus errores: 1: Estabas intentando comparar el ID del vehiculo con Journey1, sin comillas. 2: Pusiste el event handler del marker antes de ser creado. 3: Tenias un 'end' de mas en la funcion: "journeyout".
-
[TUT] Protect Client Script at the Highest Level
Castillo replied to laserlaser's topic in Tutorials
A friend already explained me what it does, thanks anyway. -
That ammunation is possible to make it, I've created a Mod Shop with the style of the Single Player one.
-
Query the account and get the password field data and compare them?
-
Try this: local query = dbQuery ( handler, "SELECT columnName FROM nickname WHERE columnName = ?", "AMARANT" ) local result, numrows, errmsg = dbPoll ( query, -1 ) if ( type ( result ) == "table" and #result == 0 or not result ) then return false else return true end
-
It's the same thing X-SHADOW.
-
Here it worked, are you sure that you added in the meta.xml this: "VIP.xml" type="client" />