-
Posts
1,390 -
Joined
-
Last visited
-
Days Won
1
Everything posted by HunT
-
timer ?? I have more commands with minigun ramp etc.. and automatic remove the mg or ramp on nextmap.
-
getRootElement (),player) no work and setTimer (destroyElement no work The Player have always granate why?
-
local sorry = sorry for my patetic eng. findPlayer = namepart ------------------------- hi guys i have problem for stop function createProjectile This script give granate to player with command.But give granate for ever and no one time (one map) serverside : function granate (thePlayer, commandName, ...) player = findPlayer(...) if not player then outputChatBox("* /givegran: player not found", thePlayer) elseif isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) local x, y, z = getElementPosition ( vehicle ) local rx, ry, rz = getVehicleRotation ( vehicle ) local shark = createObject ( 1608, x, y, z, rx, ry, rz ) attachElements ( shark, vehicle, 0, -3.5, 0, 0, 0, 0) setElementAlpha(vehicle, 0) setElementAlpha(player, 0) triggerClientEvent ("shark_key", getRootElement (), object) end end addCommandHandler("givegran", granate) client side : addEvent ("shark_key", true) function fire_rocket () local x, y, z = getElementPosition (getPedOccupiedVehicle (getLocalPlayer())) createProjectile ( getLocalPlayer(), 16, x, y, z + 1, 1.0, 0, rx, ry, rz) end function bind_key_function () bindKey ("mouse2", "down", fire_rocket) local attachedElements = getAttachedElements ( getPedOccupiedVehicle (getLocalPlayer()) ) for ElementKey, ElementValue in ipairs ( attachedElements ) do setElementCollisionsEnabled (ElementValue, false) end end addEventHandler ("shark_key", getLocalPlayer(), bind_key_function) help please and "sorry"
-
Fixed change the true/false aTab1.Admin = guiCreateButton ( 0.71, 0.305, 0.27, 0.04, "Give admin rights", true/false, aTab1.Tab, "setgroup" )
-
Hi guyz.Please help me for remove for ever this function/button. This. Please guys
-
Dont is stole. . .But is my script. Yury i hate u
-
This is my script. Castillo remove please.
-
Tnx guys. The map is free download = change the txd. I use this txd for shade whi many players run in mta with commodor 64
-
players = noobs Is possible remove the play again in race mode? Many players select again again again. Help pliz
-
Awesome Maps Race Nice Job
-
Callate is only example. But this? function omg ( ) ramp = createObject moveObject ramp bindKey omg ???
-
Without attachElements. Example (Raw) local x, y, z = getElementPosition ( source ) local rx, ry, rz = getElementRotation ( source ) local X, Y, Z = getElementPosition ( source ) local omg = ramp+moved ramp = createObject ( 1634, x, y + 6, z -1, rx, ry, rz + 180) moved = moveObject ( ramp, 100, X + 3, Y, Z) bindKey ( "mouse2", "down", omg )
-
The tube for teleports is original I use this Txd for shade why many players lag with other custom Txd :l(example loops).
-
No work because the problem is attachElements (imho). I want bindKey with function lol = createObject moveObject lol, x+1 and destroyElement lol 100. I reply with iphone
-
Sorry For Delay Castillo.I Test Tnx.
-
St3reo Project v8 Super Mario Portal Marker : 25 Custom Txd ----------- Script: playSound createWater createObject Teleport moveObject setElementVelocity destroyElement ----------- ST3REO PRODUCTION PRO|Race 1.0 ----------- Movie Helper by Kuba v.0.1 Free Download https://community.multitheftauto.com/ind ... ls&id=2131
-
Client side yep castillo. --[[ ===================================================== Racemap : Mortal Kombat v2 ===================================================== ]]-- local root = getRootElement() local this = getThisResource() local resourceRoot = getResourceRootElement(this) local localPlayer = getLocalPlayer() local Marker = {} addEventHandler("onClientResourceStart", resourceRoot, function() Marker[1] = createMarker(2404.4, -3551.9, 7.6, "corona", 5, 0, 0, 0) outputChatBox ("Mortal Kombat v2", 255, 255, 0, true) local stereo1 = engineLoadTXD ( "shade.txd" ) engineImportTXD ( stereo1, 3458 ) setCloudsEnabled ( false ) setMinuteDuration(60000) setTimer (function() setTime (0, 0) end , 60000, 0) setWaterColor( 100, 0, 0 ) setWaveHeight ( 0 ) setSkyGradient( 100, 0, 0, 100, 0, 0 ) end ) addEventHandler("onClientResourceStop", root, function(res) if res == this then end end ) addEventHandler("onClientMarkerHit", root, function(player, matchingDimension) if not matchingDimension then return end if player == localPlayer and isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) if source == Marker[1] then local x, y, z = getElementPosition ( source ) local rx, ry, rz = getElementRotation ( source ) local ramp = createObject ( 1634, x, y, z, rx, ry, rz ) attachElements ( ramp, vehicle, 0, 6, -1, 0, 0, 180 ) move1 = moveObject ( ramp, 100, 1, 0, 0 ,0 ,0 ,0) bindKey ( "mouse2", "down", move1 ) end end end ) I always use this script for my maps. My question: is it possible to move an attached object to the vehicle?
-
noob = local vehicle = getPedOccupiedVehicle(player) hi all.i have problem with this script. if source == Marker[1] then local x, y, z = getElementPosition ( source ) local rx, ry, rz = getElementRotation ( source ) local ramp = createObject ( 1634, x, y, z, rx, ry, rz ) attachElements ( ramp, vehicle, 0, 6, -1, 0, 0, 180 ) move1 = moveObject ( ramp, 100, 1, 0, 0 ,0 ,0 ,0) bindKey ( "mouse2", "down", move1 ) createObject work attachElements work moveObject no bindKey no debugscript 3 = ERROR: attempt to call a boolean value Sorry i am . . . scripter