Jump to content

TheBenja(totoco)

Members
  • Posts

    28
  • Joined

  • Last visited

Details

  • Gang
    AirForce

TheBenja(totoco)'s Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. Hi everyone,well today Im asking for a good spaz12 mod,I use but I dont like my current mod and its hard to fin one in the pages,I found a lot of mods but I didnt like it,so please help me
  2. hola,bueno quiero un spawnmarker que de hydras y esto es lo que llevo hasta ahora,nos e en que estoy fallando y se que ustedes me pueden ayudar,de antemano gracias. createMarker ( 212.86117553711, 1916.1584472656, 17.640625 ) bool isElementWithinMarker ( element theMarker, marker ring ) dutymarker = createMarker(212.86117553711, 1916.1584472656, 17.640625, 'ring', 2.0, 255, 0, 0, 150) function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, dutymarker) then giveWeapon(thePlayer, 22, 100, 1) else outputChatBox("You are not at the right place!", thePlayer, 255, 0, 0) end end addCommandHandler("duty", duty) bool setMarkerColor ( marker theMarker, int r, int g, int b, int a ) newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) setMarkerColor ( newmarker, 0, 255, 0, 255 ) ahi dice giveWeapon y no quiero armas,pero no se como hacer para que aparesca la gui con los vehiculos ni para que aparesca el marker en el mapa,ayuda por favor
  3. hi,i made this gui with the wiki but idk what happened function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Porfavor ingrese", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Usuario", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Contraseña", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Ingresar", true, wdwLogin) guiSetVisible(wdwLogin, false) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() outputChatBox("Welcome to My new Server, please be patient and log in/register.") -- if the GUI was successfully created, then show the GUI to the player if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has occurred and the log in GUI has not been created.") end showCursor(true) guiSetInputEnabled(true) end addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function createLoginWindow() addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) end function clientSubmitLogin(button,state) if button == "left" and state == "up" then guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) end end function clientSubmitLogin(button,state) if button == "left" and state == "up" then local username = guiGetText(edtUser) local password = guiGetText(edtPass) if username and password then triggerServerEvent("submitLogin", getRootElement(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter a username and password.") end end end function loginHandler(username,password) end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) function loginHandler(username,password) if username == "user" and password == "apple" then if (client) then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome to My Server.", client) end else outputChatBox("Invalid username and password. Please re-connect and try again.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler)
  4. i dont wanna the jobs made and i dont think that there is a magic program to make it,i wanna someone to teach me how to do it,not something who do it for me
  5. how to make jobs?please tell me,i cant understand how to do it and i need it,thanks
  6. EDITADO:ENCONTRE EL PROBLEMA(era porque no hise el ZIP)SOLUCIONADO,CIERRENLO PLS
  7. sip,ahi lo puse porque de ahi lo saque para pegarle aki
  8. no aparece nada de nada,ni failed to load,es como si no estubiera,esta es my ventana de login : function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Porfavor ingrese", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Usuario", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Contraseña", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Ingresar", true, wdwLogin) guiSetVisible(wdwLogin, false) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() outputChatBox("Welcome to My new Server, please be patient and log in/register.") -- if the GUI was successfully created, then show the GUI to the player if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has occurred and the log in GUI has not been created.") end showCursor(true) guiSetInputEnabled(true) end addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function createLoginWindow() addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) end function clientSubmitLogin(button,state) if button == "left" and state == "up" then guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) end end function clientSubmitLogin(button,state) if button == "left" and state == "up" then local username = guiGetText(edtUser) local password = guiGetText(edtPass) if username and password then triggerServerEvent("submitLogin", getRootElement(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter a username and password.") end end end function loginHandler(username,password) end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) function loginHandler(username,password) if username == "user" and password == "apple" then if (client) then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome to My Server.", client) end else outputChatBox("Invalid username and password. Please re-connect and try again.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler)
  9. No te funca en el sv? O en LuaEdit? en el sv,cuando le doy a start o refresh no se carga,tal cual como si no existiera
  10. ayuda,hice unos scripts y un loginpanel,lo puse en el luaedit,lo guarde,segui el procedimiento pero a la hora de intentar ejectuarlo no me resulta,es como que no existiera,alguien me puede ayudar?
  11. grax,se ve re facil,lo hare,muchas gracias
  12. pues el titulo lo dice todo,no quiero que me den el script esta vez,sino que me digan como hacerlo,los del foro siempre saben como mantenerme interesado en los scripts ,gracias de antemano
  13. 1.hasta ahora no tengo sistema de respawn 2.Creo que es lo mas probable
×
×
  • Create New...