-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
Congratulations... but this is a HELPING forum, not a "script gallery".
-
function pinksky ( thePlayer ) if hasObjectPermissionTo (thePlayer, "command.stopall") == true then setSkyGradient(200, 0, 100, 150, 0, 70) outputChatBox(getPlayerName(thePlayer).." changed the sky color to pink!", getRootElement(), 255, 255, 0, true)--"true" is not necessary in this case (colorCoded? You don't use Hex. color codes), maybe delete it to have less characters? end end addCommandHandler ("setskypink", pinksky) This is correct, I think.
-
Position: https://wiki.multitheftauto.com/wiki/SetElementPosition World (i guess it's dimension): https://wiki.multitheftauto.com/wiki/SetElementDimension Interior: https://wiki.multitheftauto.com/wiki/SetElementInterior Next time, just modify scripts. I learned to script doing that.
-
Well, RE4 camera is a static camera that is at player's back, like an attached element.
-
I never tried using onClientRender event. I hope it will work. Thanks, man.
-
I want to make a RE4 camera... But I don't know how to make it well. I have this idea: player = getLocalPlayer() x,y,z = getElementPosition (player) function updateCamera () x,y,z = getElementPosition (player) setPedAimTarget (player,x,y+100,z) rx,ry,rz = getPedTargetEnd (player) setPedAimTarget (player,rx,ry+100,rz+0.7) setCameraMatrix (x+0.5,y-0.5,z+0.7,rx-0.1,ry,z+0.4) end setTimer (updateCamera,50,0) But there are 2 bugs. Player "moves" along the camera, and if I aim, the camera rotates in its point. Help me to solve it, please.
-
Wisim, if you want to do this script... It will cost you, very very VERY much, more if you don't know how to begin creating it. Just learn LUA, it's the only way.
-
1.-This is not a resource request forum, it's a resource "showroom". 2.-If you want to do that, you can ask it on "scripting", by doing it by yourself. 3.-Title must be "How I open the garage on my server?" not "As I open..."
-
I noticed myself that there is an error. local player = getPlayerAccount ( killer ) local achievement1 = getAccountData(player,"Achievement: First Weapon") local achievement2 = getAccountData(player,"Achievement: All Ranks") local achievement3 = getAccountData(player,"Achievement: Million Dollar Man") local achievement4 = getAccountData(player,"Achievement: All Achievements") "player" must be defined before using functions with it. Oh, and ask me before using my resources, cause I can say you are stealing my work; there is no difference between this and the original, does it? Bye.
-
I noticed that when I use the exported function of creating a Bot, it creates me 3 bots, and I want only 1. This is a problem of your resource, of you did it like that? Thanks, Slothman.
-
Ok, man. Thanks for solving my question .
-
LOL, it's getting very complicated, so this is new question: Why player can't enter the Van? Van is created and not locked, it's just that there is it, and player doesn't enter it. I have binded the "enter car" control. function () if guiRadioButtonGetSelected(choose1)==true then guiSetVisible (window,false) showCursor (false) van = createVehicle (482, -2212.16, 597.12 ,35.14, 0, 0, 180, "W34P0N5") setVehicleEngineState (van,true) setVehicleLocked (van,false) vanBlip = createBlip (-2212.16, 597.12 ,35.14,55) addEventHandler ("onClientVehicleEnter",getRootElement(), function () if getPedOccupiedVehicle(source) == 482 then destroyElement (vanBlip) local objetive = math.random(1,5) if objetive == 1 then objetiveMarker = createMarker(-2391.02,1127.6,55.7,'cylinder',3,255,0,0,255) markerBlip = createBlip (-2391.02,1127.6,55.7,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 2 then objetiveMarker = createMarker(-2022.02,-44.15,35.33,'cylinder',3,255,0,0,255) markerBlip = createBlip (-2022.02,-44.15,35.33,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 3 then objetiveMarker = createMarker(-1612.536,674.161,6.776,'cylinder',3,255,0,0,255) markerBlip = createBlip (-1612.536,674.161,6.776,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 4 then objetiveMarker = createMarker(-1528.467,487.327,6.758,'cylinder',3,255,0,0,255) markerBlip = createBlip (-1528.467,487.327,6.758,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 5 then objetiveMarker = createMarker(-2034.324,178.078,28.417,'cylinder',3,255,0,0,255) markerBlip = createBlip (-2034.324,178.078,28.417,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) end end end)
-
Is possible. If you really know how to do it, tell me by PM (private message), 'cause that thing is off-topic.
-
Look, guys. I now want to create a mission script (like the GTA's missions), but easy by now. Is fully client-side, but I won't show you full code, because it has more than 150 lines, and I don't want to show to new scripter how to create one. This is my problem: I want to know how to get the player's ped, so I can force him to get into a vehicle on pressing a button. All the other thing is made, I just need that. Code: addEventHandler("onClientGUIClick",acceptButton, function () if guiRadioButtonGetSelected(choose1)==true then guiSetVisible (window,false) showCursor (false) van = createVehicle (482, -2212.16, 597.12 ,35.14, 0, 0, 180, "W34P0N5") setVehicleEngineState (van,true) setVehicleLocked (van,true) vanBlip = createBlip (-2212.16, 597.12 ,35.14,55) addEventHandler ("onClientVehicleEnter",getRootElement(), function () if getPedOccupiedVehicle(source) == 482 then destroyElement (vanBlip) local objetive = math.random(1,5) if objetive == 1 then objetiveMarker = createMarker(-2391.02,1127.6,55.7,'cylinder',3,255,0,0,255) markerBlip = createBlip (-2391.02,1127.6,55.7,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 2 then objetiveMarker = createMarker(-2022.02,-44.15,35.33,'cylinder',3,255,0,0,255) markerBlip = createBlip (-2022.02,-44.15,35.33,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 3 then objetiveMarker = createMarker(-1612.536,674.161,6.776,'cylinder',3,255,0,0,255) markerBlip = createBlip (-1612.536,674.161,6.776,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 4 then objetiveMarker = createMarker(-1528.467,487.327,6.758,'cylinder',3,255,0,0,255) markerBlip = createBlip (-1528.467,487.327,6.758,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) elseif objetive == 5 then objetiveMarker = createMarker(-2034.324,178.078,28.417,'cylinder',3,255,0,0,255) markerBlip = createBlip (-2034.324,178.078,28.417,53) addEventHandler ("onClientMarkerHit",objetiveMarker,finishMission1) end end end) elseif guiRadioButtonGetSelected(choose2)==true then guiSetVisible (window,false) showCursor (false) elseif guiRadioButtonGetSelected(choose3)==true then guiSetVisible (window,false) showCursor (false) end end)
-
REPAIRED! thank you very much, 50p.
-
nemesis: Not important, I tried with "nil" team, the same thing happens. Yes, but I want to create 1 bot, and it creates 3... No, I don't receive any warning or errors. I use "debugscript 3" all the time.
-
addEventHandler ("onResourceStart",getRootElement(), function () nemesis = exports.slothbot:spawnBot(-1918.25,660.35,46.56,90,103,0,0,nemesis,38,"hunting") exports.slothbot:setBotAttackEnabled (nemesis,true) end) It spawns 3 bots... I just want 1. Slothman, please come here and try to solve it.
-
Yeah, It's needed to be serverside, because I don't want to create 6 Nemesis bots D: What I want to do with them? Let them fight palyers using their Rocket Launchers, like in RE3.
-
Also, this: setTimer (healing,1,0) wouldn't work, because the minimal value for the time if 50ms, as stated here. LOL, I didn't use that value (1), just used it as example. What about this? addEventHandler ("onResourceStart",getRootElement(), function () nemesis = exports.slothbot:spawnBot(-1918.25,660.35,46.56,90,103,0,0,nil,36,"hunting") setElementData (nemesis,"deaths",0) end) addEventHandler ("onPedWasted",getRootElement(), function () local deaths = getElementData(source,"deaths") if exports.slothbot:isPedBot (source) and getElementData (source,"deaths") < 5 then setElementHealth (source, 100) setElementData (source,"deaths",deaths+1) end end) May it work?
-
Then... There is no way to set Health up from 200... u.u Well. Thanks.
-
Hi, men. I'm making a kind of "SA mistery" (Nemesis, in this case) and I need that all you help me. I want to set the Nemesis health to 100.000. Is this possible? And how? Of course I used: setElementHealth (nemesis, 100000) But it doesn't work. And I don't want infinite health, like this: function healing () setElementHealth (nemesis,100) end setTimer (healing,1,0) Look, this is my code (I'm using slothbot, thanks sloth): addEventHandler ("onResourceStart",getRootElement(), function () nemesis = exports.slothbot:spawnBot(-1918.25,660.35,46.56,90,103,0,0,nil,36,"hunting") end) Any way to set Nemesis health to 100.000? I will wait an answer. Thanks beforehand.
-
Lol, that's a known issue. Is caused for the "zombies" reosurce, I don't know why. Just restart "zombies", and your shop will work fine. PS: Sometimes is good to see at the first post , this issue is added on it.