-
Posts
1,708 -
Joined
-
Last visited
Everything posted by iFoReX
-
addEventHandler("onClientMarkerLeave", bikes, function ( leaveElement ) if (leaveElement == localPlayer) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) si no funciona dime lo hize a la rapida
-
C: GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(391,195,507,430,"Vehicles",false) GUIEditor_Button[1] = guiCreateButton(0.0276,0.8186,0.3846,0.1465,"Use",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5819,0.8186,0.3846,0.1465,"Close",true,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(0.0217,0.0558,0.9546,0.7419,true,GUIEditor_Window[1]) col = guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle name:",0.2) addEventHandler("onClientResourceStart",resourceRoot,function() local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText(GUIEditor_Grid[1],row,col,"BMX",false,false) end )
-
yo usaba nixiweb, en ogservers . net hay 1 tuto
-
El texto no cambia en el edit he intentado todo, y no hay problemas en el debug cl-side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.415,0.2333,0.2212,0.3967,"Bienvenido a MultiGames",true) GUIEditor_Label[1] = guiCreateLabel(43,37,91,26,"Elija un spawn...",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(9,74,156,45,"Zombies",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(9,126,156,45,"Carreras callejeras",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(9,178,156,45,"Clan Wars",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(0.2738,0.3967,0.54,0.2533,"Zombies Gamemode",true) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Label[2] = guiCreateLabel(178,36,72,17,"Elije un Skin",false,GUIEditor_Window[2]) GUIEditor_Edit[1] = guiCreateEdit(171,61,79,23,"",false,GUIEditor_Window[2]) guiEditSetReadOnly(GUIEditor_Edit[1],true) GUIEditor_Button[4] = guiCreateButton(145,59,22,29,"<",false,GUIEditor_Window[2]) GUIEditor_Button[5] = guiCreateButton(254,59,22,29,">",false,GUIEditor_Window[2]) GUIEditor_Button[6] = guiCreateButton(11,99,144,44,"Jugar !",false,GUIEditor_Window[2]) GUIEditor_Button[7] = guiCreateButton(280,99,143,44,"Volver",false,GUIEditor_Window[2]) GUIEditor_Window[3] = guiCreateWindow(0.2138,0.0917,0.6875,0.75,"Carreras Callejeras GameMode",true) GUIEditor_Label[3] = guiCreateLabel(62,35,80,23,"Elije tu coche",false,GUIEditor_Window[3]) GUIEditor_Grid[1] = guiCreateGridList(15,71,192,370,false,GUIEditor_Window[3]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Autos",0.2) GUIEditor_Label[4] = guiCreateLabel(403,35,80,23,"Elije Una pista",false,GUIEditor_Window[3]) GUIEditor_Grid[2] = guiCreateGridList(344,71,192,370,false,GUIEditor_Window[3]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) guiGridListAddColumn(GUIEditor_Grid[2],"Pistas",0.2) GUIEditor_Button[8] = guiCreateButton(209,182,132,51,"Jugar !",false,GUIEditor_Window[3]) GUIEditor_Button[9] = guiCreateButton(209,240,132,51,"Volver",false,GUIEditor_Window[3]) GUIEditor_Window[4] = guiCreateWindow(0.1838,0.0767,0.7312,0.765,"Clan Wars GameMode",true) GUIEditor_Label[5] = guiCreateLabel(263,60,64,21,"Elije 1 clan",false,GUIEditor_Window[4]) GUIEditor_Grid[3] = guiCreateGridList(224,86,139,127,false,GUIEditor_Window[4]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) guiGridListAddColumn(GUIEditor_Grid[3],"Clanes",0.2) GUIEditor_Label[6] = guiCreateLabel(56,43,154,25,"Elije las Armas",false,GUIEditor_Window[4]) GUIEditor_Grid[4] = guiCreateGridList(29,68,171,148,false,GUIEditor_Window[4]) guiGridListSetSelectionMode(GUIEditor_Grid[4],2) guiGridListAddColumn(GUIEditor_Grid[4],"Arma Primaria",0.2) GUIEditor_Grid[5] = guiCreateGridList(29,229,171,148,false,GUIEditor_Window[4]) guiGridListSetSelectionMode(GUIEditor_Grid[5],2) guiGridListAddColumn(GUIEditor_Grid[5],"Arma Secundaria",0.2) GUIEditor_Label[7] = guiCreateLabel(412,43,154,25,"Elije las Armas",false,GUIEditor_Window[4]) GUIEditor_Grid[6] = guiCreateGridList(385,68,171,148,false,GUIEditor_Window[4]) guiGridListSetSelectionMode(GUIEditor_Grid[6],2) guiGridListAddColumn(GUIEditor_Grid[6],"Arma Terciaria",0.2) GUIEditor_Button[10] = guiCreateButton(225,225,137,48,"Jugar",false,GUIEditor_Window[4]) GUIEditor_Button[11] = guiCreateButton(225,283,137,48,"Volver",false,GUIEditor_Window[4]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],false) guiSetVisible(GUIEditor_Window[3],false) guiSetVisible(GUIEditor_Window[4],false) addEvent("openMGMGUI",true) addEventHandler("openMGMGUI",root,function() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end ) addEventHandler("onClientGUIClick",root,function() if source == GUIEditor_Button[1] then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[2],true) local elTexto = guiGetText(GUIEditor_Edit[1]) local skins = 'Chris Redfield' guiSetText(GUIEditor_Edit[1],skins) if source == GUIEditor_Button[4] then if elTexto == 'Chris Redfield' then guiSetText(GUIEditor_Edit[1],'Sheva') elseif elTexto == 'Sheva' then guiSetText(GUIEditor_Edit[1],skins) end elseif source == GUIEditor_Button[5] then if elTexto == 'Sheva' then guiSetText(GUIEditor_Edit[1],skins) elseif elTexto == 'Chris Redfield' then guiSetText(GUIEditor_Edit[1],'Sheva') end end elseif source == GUIEditor_Button[2] then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[3],true) elseif source == GUIEditor_Button[3] then guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[4],true) elseif source == GUIEditor_Button[7] then guiSetVisible(GUIEditor_Window[4],false) end end ) sv-side addEventHandler("onPlayerLogin",root,function() triggerClientEvent(source,"openMGMGUI",source) end)
-
porque el dinero no se entrega ? addEventHandler("onPedWasted",root,function(killer) if not killer == source then givePlayerMoney(killer,150) end end )
-
me aparece error en el srv side, con un END
-
porque esto no me funciona ? cl-side GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Image = {} addEventHandler("onClientResourceStart",resourceRoot,function() GUIEditor_Button[1] = guiCreateButton(0.7962,0.1383,0.0388,0.025,"cerrar",true) guiSetAlpha(GUIEditor_Button[1],0) GUIEditor_Image[1] = guiCreateStaticImage(0.2438,0.13,0.58,0.655,"images/windows7.jpg",true) addEventHandler("onClientRender",root,loginB) addEventHandler("onClientRender",root,registerB) GUIEditor_Button[2] = guiCreateButton(0.2625,0.31,0.0575,0.0317,"LOGIN",true) guiSetAlpha(GUIEditor_Button[2],0) GUIEditor_Button[3] = guiCreateButton(0.2637,0.345,0.075,0.0317,"REGISTER",true) guiSetAlpha(GUIEditor_Button[3],0) end ) -- Direct X Drawing function loginB() dxDrawText("-Login",212.0,186.0,249.0,203.0,tocolor(0,0,0,160),1.0,"sans","left","top",false,false,true) end function loginBC() dxDrawText("-Login",212.0,186.0,249.0,203.0,tocolor(34,162,248,160),1.0,"sans","left","top",false,false,true) end function registerB() dxDrawText("-Register",211.0,208.0,271.0,224.0,tocolor(0,0,0,160),1.0,"sans","left","top",false,false,true) end function registerBC() dxDrawText("-Register",211.0,208.0,271.0,224.0,tocolor(34,162,248,160),1.0,"sans","left","top",false,false,true) end addEventHandler("onClientMouseEnter",root,function() if source == GUIEditor_Button[2] then removeEventHandler("onClientRender",root,loginB) addEventHandler("onClientRender",root,registerB) if source == GUIEditor_Button[3] then removeEventHandler("onClientRender",root,registerB) addEventHandler("onClientRender",root,loginB) end end end ) addEventHandler("onClientMouseLeave",root,function() if source == GUIEditor_Button[3] then removeEventHandler("onClientRender",root,loginB) addEventHandler("onClientRender",root,registerB) if source == GUIEditor_Button[2] then removeEventHandler("onClientRender",root,registerB) addEventHandler("onClientRender",root,loginB) end end end ) function registerW() dxDrawText("register",426.0,366.0,518.0,389.0,tocolor(0,0,0,255),1.5,"default-bold","left","top",false,true,true) dxDrawRectangle(423.0,361.0,112.0,34.0,tocolor(30,130,204,190),true) dxDrawText("CONFIRM PASSWORD",388.0,306.0,565.0,321.0,tocolor(0,0,0,190),0.5,"bankgothic","left","top",false,false,true) dxDrawText("USERNAME",429.0,189.0,526.0,205.0,tocolor(0,0,0,190),0.5,"bankgothic","left","top",false,false,true) dxDrawText("PASSWORD",427.0,250.0,524.0,266.0,tocolor(0,0,0,190),0.5,"bankgothic","left","top",false,false,true) dxDrawText("PAGE",205.0,83.0,318.0,113.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,true) GUIEditor_Edit[1] = guiCreateEdit(0.5163,0.3617,0.1663,0.0433,"",true) guiSetAlpha(GUIEditor_Edit[1],1) GUIEditor_Edit[2] = guiCreateEdit(0.5138,0.545,0.1663,0.0433,"",true) GUIEditor_Edit[3] = guiCreateEdit(0.5175,0.45,0.1663,0.0433,"",true) GUIEditor_Button[4] = guiCreateButton(0.5263,0.6017,0.1462,0.0567,"REGISTERC",true) guiSetAlpha(GUIEditor_Button[4],0) end function loginW() dxDrawText("login",426.0,366.0,518.0,389.0,tocolor(0,0,0,255),1.5,"default-bold","left","top",false,true,true) dxDrawRectangle(423.0,361.0,112.0,34.0,tocolor(30,130,204,190),true) dxDrawText("USERNAME",429.0,189.0,526.0,205.0,tocolor(0,0,0,190),0.5,"bankgothic","left","top",false,false,true) dxDrawText("PASSWORD",427.0,250.0,524.0,266.0,tocolor(0,0,0,190),0.5,"bankgothic","left","top",false,false,true) dxDrawText("PAGE",205.0,83.0,318.0,113.0,tocolor(255,255,255,255),0.5,"bankgothic","left","top",false,false,true) GUIEditor_Edit[4] = guiCreateEdit(0.5163,0.3617,0.1663,0.0433,"",true) guiSetAlpha(GUIEditor_Edit[1],1) GUIEditor_Button[5] = guiCreateButton(0.5263,0.6017,0.1462,0.0567,"LOGINC",true) guiSetAlpha(GUIEditor_Button[4],0) GUIEditor_Edit[5] = guiCreateEdit(0.5138,0.545,0.1663,0.0433,"",true) end addEventHandler("onClientGUIClick",root,function() if source == GUIEditor_Button[2] then addEventHandler("onClientRender",root,loginW) removeEventHandler("onClientRender",root,registerW) elseif source == GUIEditor_Button[3] then removeEventHandler("onClientRender",root,loginW) addEventHandler("onClientRender",root,registerW) end end ) function onClickBtnLogin(button,state) if(button == "left" and state == "up") then if (source == GUIEditor_Button[5]) then local username = guiGetText(GUIEditor_Edit[4]) local password = guiGetText(GUIEditor_Edit[5]) triggerServerEvent("submitLoginEM",getLocalPlayer(),username,password) end end end addEventHandler("onClientGUIClick",root,onClickBtnLogin) function onClickBtnRegister(button,state) if(button == "left" and state == "up") then if (source == GUIEditor_Button[4]) then local username = guiGetText(GUIEditor_Edit[1]) local password = guiGetText(GUIEditor_Edit[2]) local passwordConfirm = guiGetText(GUIEditor_Edit[3]) triggerServerEvent("cuenta",getLocalPlayer(),username,password,passwordConfirm) end end end addEventHandler("onClientGUIClick",root,onClickBtnRegister) addEvent("closeGUI",true) addEventHandler("closeGUI",root,function() removeEventHandler("onClientRender",root,loginB) removeEventHandler("onClientRender",root,loginBC) removeEventHandler("onClientRender",root,registerB) removeEventHandler("onClientRender",root,registerBC) removeEventHandler("onClientRender",root,registerW) removeEventHandler("onClientRender",root,loginB) guiSetVisible(GUIEditor_Image[1],false) guiSetVisible(GUIEditor_Button[1],false) guiSetVisible(GUIEditor_Button[2],false) guiSetVisible(GUIEditor_Button[3],false) end ) addEvent("cuenta", true) addEventHandler("cuenta", root, function ( username, password, passwordConfirm ) if ( password ~= "" and password ~= nil and username ~= "" and username ~= nil and password == passwordConfirm ) then if ( not getAccount ( username ) ) then local accountAdded = addAccount ( username, password ) if ( accountAdded ) then outputChatBox ( "Gracias " .. getPlayerName ( source ) .. ", Ya estas Registrado y loggeado", source ) outputChatBox ( "Tu Character se a creado con exito !.", source ) triggerClientEvent ( source, "closeGUI", source ) logIn ( source, username , password ) end else outputChatBox ( "Error creando la Cuenta por Favor contacta a un Admin.", source ) end else outputChatBox ( "Esta Cuenta Ya Existe..", source ) end else outputChatBox ( "Porfavor Pon tus datos Correctos.", source ) end ) function loginHandler(username,password) if ( username ) then local acc = getAccount(username, password) if (acc) then logIn ( source, acc, password ) fadeCamera(source, true) setCameraTarget(source) triggerClientEvent ( source, "closeGUI", source ) outputChatBox("Disfrutalo", source) else outputChatBox("invalid username and password. Please re-connect and try again.", source) end end end addEvent("submitLoginEM",true) addEventHandler("submitLoginEM",root, loginHandler)
-
Nice tuto , it is very useful c:, but when I done the first example appear Hello Mr.Padawan this is right ? or I done something bad in this ?
-
function CL() dxDrawImage(BLABLABLA) end addEvent("mostrarbanderaCL",true) addEventHandler("mostrarbanderaCL",root,function() addEventHandler("onClientRender",root,CL) end ) ? c:
-
mm podrias hacerle asi : srv-side : addEventHandler("onPlayerJoin",root,function() local the_country = getElementData(source,"elPais") if the_country == CL then triggerClientEvent("mostrarbanderaCL",getRootElement()) end end ) cl-side addEvent("mostrarbanderaCL",true) addEventHandler("mostrarbanderaCL",root,function() dxDrawImage(...) end ) espero haberte ayudado
-
el texto ni el rectangulo aparecen function dxLogo() logo = dxDrawText("[PGS]BaseMode Server",632.0,7.0,765.0,22.0,tocolor(13,227,184,190),1.0,"default-bold","left","top",false,false,true) dxDrawRectangle(624.0,6.0,151.0,19.0,tocolor(0,0,0,170),false) setElementData(getLocalPlayer(),"text","logo") end function dxWebSite() website = dxDrawText("http://website.com",632.0,7.0,765.0,22.0,tocolor(13,227,184,190),1.0,"default-bold","left","top",false,false,true) dxDrawRectangle(624.0,6.0,151.0,19.0,tocolor(0,0,0,170),false) setElementData(getLocalPlayer(),"text","website") end function destruirLogo() destroyElement(logo) end function destruirWebSite() destroyElement(website) end function condiciones() if getElementData(getLocalPlayer(),"text") == "logo" then setTimer(destruirLogo(), 60000, 1) addEventHandler("onClientRender",root,dxLogo) removeEventHandler("onClientRender",root,dxWebSite) elseif getElementData(getLocalPlayer(),"text") == "website" then setTimer(destruirWebsite(),60000, 1) addEventHandler("onClientRender",root,dxWebSite) removeEventHandler("onClientRender",root,dxLogo) end end
-
aqui el codigo addCommandHandler("irbhz",function(playerSource) redirectPlayer(playerSource,94.23.83.155,11812) end )
-
Hola amigos queria instalar este recurso : https://community.multitheftauto.com/index.php?p= ... ils&id=493 me podrian ayudar a Instalarlo c: ?
-
it not have errors in debugscript 3 al3grab
-
all players can enter to the area
-
local accName = getAccountName(acc) if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then killPed(hitElement) are you kidding me ?
-
all can enter
-
safecol = createColCuboid ( 300.177734375, -2226.9956054688, 17.64, 300, 200, 60 ) safecol2 = createColCuboid (190.32346, 1946.84485,17.7, 200, 150, 60 ) safecol3 = createColCuboid (-398.96045, 1502.05359,75.35696, 200, 150, 60 ) safeZoneRadar = createRadarArea ( 57.57347, 1768.47424, 300, 200, 0, 255, 0, 0 ) safeZoneRadar2 = createRadarArea ( 190.32346, 1946.84485, 200, 150, 0, 0, 0, 0 ) safeZoneRadar3 = createRadarArea ( -398.96045, 1502.05359, 200, 150, 0, 0, 120, 0 ) setElementData (safeZoneRadar, "zombieProof", true) setElementData (safeZoneRadar2, "zombieProof", true) setElementData (safeZoneRadar3, "zombieProof", true) function enterZone( hitElement, matchingDimension) if source == safecol or source == safecol2 then local accName = getAccountName ( getPlayerAccount ( hitElement ) ) if getElementType(hitElement) == "ped" or not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then killPed(hitElement) end end end addEventHandler( "onColShapeHit", root, enterZone ) addEventHandler("onColShapeHit",root,function(hitElement,matchingDimension) if source == safecol3 then if getElementType(hitElement) == "ped" then killPed(hitElement) end end end ) ?
-
xDD por segunda vez consecutiva Simon me ofresco a ayudarte
-
why the players can walk in my area ?
-
why the zombies spawn and enter to my colcuboid ? safecol = createColCuboid ( 300.177734375, -2226.9956054688, 17.64, 300, 200, 60 ) safecol2 = createColCuboid (190.32346, 1946.84485,17.7, 200, 150, 60 ) safeZoneRadar = createRadarArea ( 57.57347, 1768.47424, 300, 200, 0, 255, 0, 0 ) safeZoneRadar2 = createRadarArea ( 190.32346, 1946.84485, 200, 150, 0, 0, 0, 0 ) setElementData (safecol, "zombieProof", true) setElementData (safecol2, "zombieProof", true) function enterZone( hitElement, matchingDimension) if source == safecol or source == safecol2 then if getElementType(hitElement) == "ped" then killPed(hitElement) local accName = getAccountName ( getPlayerAccount ( hitElement ) ) if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then killPed(hitElement) end end end end addEventHandler( "onColShapeHit", root, enterZone )
-
work work very thank you c: