Jump to content

CheiN

Members
  • Posts

    164
  • Joined

  • Last visited

Everything posted by CheiN

  1. CheiN

    LEVEL SYSTEM

    addEvent ( "sunlight", true ) addEventHandler ( "sunlight", root ) Pm: no hagas offtopic...
  2. CheiN

    LEVEL SYSTEM

    por qe no usas addEvent y addEventHandler
  3. CheiN

    LEVEL SYSTEM

    donde muestra cuando obtiene la exp ?
  4. show the new script please
  5. im talking about: you create the function with name Bank you create the event and eventHandler with name Bank you make the same things with hacked
  6. attachElements USE [.lua] and [./lua] tags WITHOUT . sry for mayus abuse
  7. you are calling the function like event
  8. Server Side addEvent("Bank", true) addEventHandler("Bank", root, function Bank() setElementFrozen(localPlayer, true) outputChatBox("Hacking started! It will take 5 mins to hack the Bank!", 255, 255, 0) end ) addEvent("hacked", true) addEventHandler("hacked", root, function hacked() givePlayerMoney (localPlayer, 10000) setElementFrozen(localPlayer, false) setPlayerWantedLevel ( localPlayer, 3 ) end setTimer ( hacked, 300000, 1 ) ) Client: HackerMarker = createMarker ( 2511, -1246, 35, "cylinder", 1.5, 255, 255, 0, 255 ) addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) local screenX, screenY = guiGetScreenSize() local width, height = 600, 600 local x = (screenX/2) - (width/2) local y = (screenY/2) - (height/2) function HackerWindow() HackWindow = guiCreateWindow(x,y,width,height,"Hacker-Job",false) guiWindowSetSizable(HackWindow,false) guiSetVisible(HackWindow, false) Hacker = guiCreateLabel(0.02,0.07,0.5,0.2,"Choose what you want to hack",true,HackWindow) button1 = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Bank", true,HackWindow ) end addEvent ("HackerWindow",true) addEventHandler ("HackerWindow",getResourceRootElement(getThisResource()),HackerWindow) function HackerWindowDestroy() destroyElement(HackerWindow) HackerWindow = false showCursor (false) end function HackerWindowClick() if source == button1 then triggerServerEvent ("Bank",getLocalPlayer()) HackWindowDestroy () elseif source == button2 then HackerWindowDestroy () end end addEventHandler("onClientGUIClick",getRootElement(),HackerWindowClick) try it
  9. CheiN

    ¿im good? V

    function sod ( ) spawnPlayer ( source, sintax....) outputChatBox ( "Welcome to M.F.A", source, 255, 0, 0, true ) end addEventHandler ( "onPlayerWasted", root, sod ) Im good?
  10. hey guys i have 3 answers : 1(for Race gamemode):i want to teleport a player when he/she die but not with the car (like stheal) 2: what i should use to create the ped like spawnpoint 2; if 1 is possible i should use this?: bindKey spawnPlayer or setElementPosition createPed and Event "onPlayerWasted"
  11. BUENOS DIAS TARDES NOCHES (sry for mayus abuse) hola chicos, bueno necesitaba saber 2 o 3 cosas, 1: quiero crear unas arenas (desde el gamemode race), pero quiero qe dicha arena sea en stheal ES esto posible? 2: si 1 es posible como hago para poner el ped en alguna posicion 3: si 1 y 2 son posibles deberia usar bindKey "onPlayerWasted" spawnPlayer o setElementPosition y createPed ?
  12. CheiN

    LEVEL SYSTEM

    No hagas Off Topic, y creo que el trabajo de decodificacion no es meter el archivo a un software y este te lo devuelve listo, es algo mas complicado y seria mas fácil hacer uno tuyo, no es tan difícil. claro, no es dificil crea una columna y agregale lo del zombie kill y un saver (no te diran las functions)
  13. CheiN

    ¡question!

    what i should use to make a command that redirect to other server. THX FOR READ
  14. DatabAse and setAccountData are diferent things setAccountData is for put info to one acc and database is the thing that have all info of all players If you want use a script to set info to a user u should use: getPlayerAccount isGuestAccount getAccountData setAccountData
  15. Solucion: por que no te rindes y solo haces esto: No PONGAS EL TXD
  16. Y te dan un auto?? No cierto? Por que yo juego mucho en ffs y se que ellos no son tan boludos de poner un script en un mapa GRACIAS
  17. function blipper () local perfectBlip = createBlip (sintax) destroyElement (perfectBlip) addEvent ("onPlayerCommand", true) addCommandHandler("hiddeblip", blipper) i think that it not will work...
  18. Casillo esto no va en scripting muevelo a ayuda relacionada al cliente servidor
  19. CheiN

    ¿im good? IV

    function Moon ( ) local visitor = getPlayerName dxDrawText ( "visitor" Joined, 44, screenHeight -41, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1.10, "pricedown" ) end addEventHandler ( "onClientRender", root, Moon )
  20. CheiN

    ¿im good? IV

    ¿Can you help me?
  21. CheiN

    ¿im good? IV

    ¿¿so what i should use??
  22. CheiN

    Help here :P

    WE ARE HUMANS ALL CAN FORGET ▲_▲ srry for mayus abuse
  23. CheiN

    Help here :P

    exploder, say thx to me -.- and you can use this: getPlayerAccount isGuestAccount getAccountData setAccountData Thx ¿no eh?
×
×
  • Create New...