Jump to content

CheiN

Members
  • Posts

    164
  • Joined

  • Last visited

Everything posted by CheiN

  1. CheiN

    Help Plz

    function rep ( ) fixVehicle ( theVehicle ) end bindKey ( "n", "down", rep )
  2. setElementVelocity el skygradient es para el color del cielo y este para la velocidad SORRY PER DOBLE POST
  3. CheiN

    ¿im good? VI

    solid which function i should use to dissable the Vehicle sounds?
  4. CheiN

    ¿im good? VI

    function sound ( ) playSound ( "music2.mp3" ) end bindKey ( "w", "down", sound ) function real ( ) stopSound ( "music2.mp3" ) end bindKey ( "w", "up", real )
  5. read onPlayerWasted on wiki here u can see how to define it
  6. getAcc data is when player exit setAcc data is when player login
  7. cor = { --aca tus coordemadas } function camera21( ) setCameraMatrix( 10000, 1, #cor ) end addEventHandler( "onPlayerWasted", getRootElement(), camera21 ) no se si estoy bien no soy bueno con tablas.
  8. CheiN

    Problema

    esta bien? warpPedIntoVehicle (source, createVehicle) ofc yakuza, pato esta mal
  9. CheiN

    ayuda!! :l

    como esto va por offtopic te recomiendo leer los PUTOS apartados por que esto va en scripting (serpentesco14 plz mueve esto a scripting) usa esto: getPlayerAccount isGuestAccount getAccountData setAccountData y deja de postear donde no es -.-
  10. CheiN

    Problema

    tu problema es en el server side y estas warpeando pero no puedes usar createVehicle por que no es parte de su sintax
  11. what debugscript 3 says?
  12. use that and put it on client
  13. ¿you put it on client?
  14. try with the last (i modified it)
  15. function playerghostmode() local localplayer = getLocalPlayer(source) for index,player in ipairs(getElementsByType("player")) do setElementCollidableWith(player, localplayer, false) outputChatBox("Server: Ghostmod: on", source, 0, 255, 0 ) else setElementCollidableWith(player, localplayer, true) outputChatBox("Server: Ghostmode: off", source, 0, 255, 0 ) end end end addCommandHandler("ghostmode", playerghostmode) TRY THIS
  16. function playerghostmode() local localplayer = getLocalPlayer(source) for index,player in ipairs(getElementsByType("player")) do setElementCollidableWith(player, localplayer, false) outputChatBox("Server: Ghostmod: on", thePlayer, 0, 255, 0 ) else setElementCollidableWith(player, localplayer, true) outputChatBox("Server: Ghostmode: off", thePlayer, 0, 255, 0 ) end end addCommandHandler("ghostmode", playerghostmode) try it
  17. i think that is correct,(i cant see now) but "ghostmode off" should be "true" not "false"
  18. use this: setElementCollidableWith (offtopic: spark.... GHOST MODE)
  19. ghost mode are not abble on your gamemode settings?
  20. read the introduction to lua and gui (use): setCameraTarget fadeCamera
  21. that objet is already existent, so u get a prank coz i've seen it (IN COMMUNITY SEARCH THE SCRIPT FOR TURN THE LIGHTS ON/OFF) Pm: sorry for mayus abuse
  22. CheiN

    help

    thx 4 you time, i will try
  23. CheiN

    LEVEL SYSTEM

    exports.scoreboard:addScoreboardColumn('Nivel') addEvent("levels",true) addEventHandler("levels",root function() local account = getPlayerAccount(source) local experience = getAccountData(account,"experience") if (experience >= 0) and (experience <= 4) then setAccountData ( account, "Nivel", "1" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 5) and (experience <= 50) then setAccountData ( account, "Nivel", "2" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 99) and (experience <= 250) then setAccountData ( account, "Nivel", "3" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 300 and (experience <= 500) then setAccountData ( account, "Nivel", "4" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 700) and (experience <= 900) then setAccountData ( account, "Nivel", "5" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 999) and (experience <= 1500) then setAccountData ( account, "Nivel", "6" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 1700) and (experience <= 1900) then setAccountData ( account, "Nivel", "7" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 2100) and (experience <= 2500) then setAccountData ( account, "Nivel", "8" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 3100) and (experience <= 3600) then setAccountData ( account, "Nivel", "9" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 4000) and (experience <= 4800) then setAccountData ( account, "Nivel", "10" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 5250) and (experience <= 5900) then setAccountData ( account, "Nivel", "11" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 6593) and (experiences <= 6900) then setAccountData ( account, "Nivel", "12" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 7400) and (experience <= 8000) then setAccountData ( account, "Nivel", "13" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 8799) and (experience <= 9100) then setAccountData ( account, "Nivel", "14" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 9101) and (experience <= 9500) then setAccountData ( account, "Nivel", "15" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL SIGUE ASI!!", getRootElement(), 255, 255, 255, true ) elseif (experience >= 10000) and (experience<= 15000) then setAccountData ( account, "Nivel", "16" ) outputChatBox ( "#FF0000FELICIDADES HAS SUBIDO DE NIVEL HAS LLEGADO AL MAX (POR AHORA >!", getRootElement(), 255, 255, 255, true ) end end ) addEventHandler("levels",root, function () local account = getPlayerAccount(source) if isGuestAccount(account) then return end local Nivel = getAccountData(account,"Nivel") if Nivel then setElementData(source,"Nivel", Nivel) end end )
×
×
  • Create New...