Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Me presento..

    Hola y bienvenido al foro! Espero que la pases bien y recivas toda la ayuda que precises.
  2. Samer, I wouldn't listen to him, as far as I can see from his/her post's is... he's trying to get his post count higher, nothing more. And now, back in topic: You are creating a column in the scoreboard, but about the setElementData, thePlayer has to be a valid element, is this your full script?
  3. I've noticed of many bugs in my exp_system, so I decided to spend some time updating it, adding new things, and making it more efficient.
  4. Stolen my exp/level system, only changed text: https://community.multitheftauto.com/ind ... ls&id=2683
  5. bindKey ( v, "num_0", "down", spawnRamp, "Spawn Ramp N :~ Yo" ) bindKey ( v, "lalt", "down", spawnRamp, "Spawn Ramp N :~ Yo" ) bindKey ( v, "mouse4", "down", spawnRamp, "Spawn Ramp N :~ Yo" )
  6. Do this with map editor? I didn't know map editor could create this kind of script , do you know what does this? have you even started the resource?
  7. I don't get most of what you said... are you asking HELP to make not lose weapons after you die?
  8. "Ramp spawning" It's kinda self explained... it spawns a ramp infront of your vehicle.
  9. ---Server Side---- function totalled(loss) if (getElementHealth(source) <= 500) then toggleControl(getVehicleOccupant(source),"accelerate",false) toggleControl(getVehicleOccupant(source),"brake_reverse",false) local thePlayer = getVehicleOccupant(source) triggerClientEvent(thePlayer,"onLabel",thePlayer,true) end end addEventHandler("onVehicleDamage",getRootElement(),totalled) function entra(thePlayer,seat,jacked) if (getElementHealth(source) >= 500) then toggleControl(getVehicleOccupant(source),"accelerate",true) toggleControl(getVehicleOccupant(source),"brake_reverse",true) elseif (getElementHealth(source) <= 500) then triggerClientEvent(thePlayer,"onLabel",thePlayer,true) end end addEventHandler("onVehicleEnter",getRootElement(),entra) function sale (thePlayer,seat,jacker) triggerClientEvent(thePlayer,"onLabel",thePlayer,false) end addEventHandler("onVehicleExit",getRootElement(),sale)
  10. Castillo

    help plz

    Try with this: addEvent("premiumbuyhunter", true) addEventHandler("premiumbuyhunter", getRootElement(), function() if isPedInVehicle(source) then local theVehicle = getPedOccupiedVehicle ( source ) setElementData(source,"tempVehicle",getElementModel(theVehicle)) setElementModel ( theVehicle, 425 ) setTimer(function (player) if player then local theVehicle = getPedOccupiedVehicle ( player ) setElementModel(theVehicle,tonumber(getElementData(player,"tempVehicle"))) end end, 60000, 1, source) end end)
  11. Castillo

    help plz

    Maybe that's because you aren't TRYING at all? you are posting random codes to get someone else to make the real script.
  12. Castillo

    help plz

    Well... maybe it's time to learn...?
  13. If you only put one, it'll send 'source', but not to the function (means example: function (source), that's wrong, 'source' won't appear in the function name).
  14. Of course that it makes bad arguments, you aren't creating the team at all. armyteam = createTeam("Army_Rangers", 255, 255, 255) function setTeam(player) setPlayerTeam ( player, armyteam ) end addEvent( "giveTeam", true ) addEventHandler( "giveTeam", getRootElement(), setTeam ) Oh, and, the client side is wrong, aren't passing the 'player'. function recruitSpawn(button,state) if button == "left" and state == "up" then triggerServerEvent("recruitMove",getLocalPlayer(),207.00390625,1865.75390625,13.140625,0,287) triggerServerEvent("giveweapon",getLocalPlayer()) triggerServerEvent("giveTeam",getLocalPlayer(),getLocalPlayer()) closeWindow() removecursor() end end
  15. bandi, that makes no sense... createTeam has 4 arguments, teamName, red, green, blue.
  16. Castillo

    help plz

    Save the vehicle somewhere, could be element data, and then after 1 minute you give it getting the data from the player.
  17. And the team function?
  18. Take some time reading the introduction to resources: https://wiki.multitheftauto.com/wiki/Resources
  19. Why do you want to change that? the script should work fine without changing anything.
  20. If I'm right, what Axel posted is scripted by JasperNL o_O.
  21. This resource: https://community.multitheftauto.com/index.php?p= ... ls&id=1253 should do the work, as it was scripted for that. You'll just need some scripting knowledge to make it work with zombies.
  22. Stolen my race userpanel: https://community.multitheftauto.com/index.php?p= ... ls&id=2680
  23. Castillo

    Duda

    No, en isPlayerInTeam el uso "return". Asi que seria algo asi: function resourceStart() local realtime = getRealTime() if setTime(18, 21) then setMinuteDuration(60000) return true else return false end end if resourceStart() then outputChatBox("Set time was successfully executed.") end
  24. Castillo

    Duda

    No entiendo a que te referis, podrias explicarte mejor?
×
×
  • Create New...