-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Hola y bienvenido al foro! Espero que la pases bien y recivas toda la ayuda que precises.
-
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?
-
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.
-
Stolen my exp/level system, only changed text: https://community.multitheftauto.com/ind ... ls&id=2683
-
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" )
-
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?
-
I don't get most of what you said... are you asking HELP to make not lose weapons after you die?
-
"Ramp spawning" It's kinda self explained... it spawns a ramp infront of your vehicle.
-
---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)
-
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)
-
Maybe that's because you aren't TRYING at all? you are posting random codes to get someone else to make the real script.
-
Well... maybe it's time to learn...?
-
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).
-
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
-
bandi, that makes no sense... createTeam has 4 arguments, teamName, red, green, blue.
-
Save the vehicle somewhere, could be element data, and then after 1 minute you give it getting the data from the player.
-
Take some time reading the introduction to resources: https://wiki.multitheftauto.com/wiki/Resources
-
Why do you want to change that? the script should work fine without changing anything.
-
If I'm right, what Axel posted is scripted by JasperNL o_O.
-
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.
-
Stolen my race userpanel: https://community.multitheftauto.com/index.php?p= ... ls&id=2680
-
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
-
No entiendo a que te referis, podrias explicarte mejor?
