-
Posts
677 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Storm-Hanma
-
You mean converting skin ?replacing skin?well check out the correct id you want to convert then check in game by selecting that skin
-
Check this use toggle control function See function disableFireForHydra ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra setVehicleGunsEnabled ( theVehicle, false ) -- disable their guns else -- if they entered another vehicle setVehicleGunsEnabled ( theVehicle, true ) -- enable their guns end end addEventHandler ( "onClientPlayerEnterVehicle", getLocalPlayer(), disableFireForHydra ) See Also Replace rhino id for rhino !! Another example use toggle control function disableFireForHydra ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra toggleControl ( source, "vehicle_secondary_fire", false ) -- disable their fire key else -- if they entered another vehicle toggleControl ( source, "vehicle_secondary_fire", true ) -- enable their fire key end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), disableFireForHydra ) Click to collapse [-]Example Sorry for double post !! Both r same use toggle control Client function disableFireForHydra ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra toggleControl ( "vehicle_secondary_fire", false ) -- disable their fire key else -- if they entered another vehicle toggleControl ( "vehicle_secondary_fire", true ) -- enable their fire key end end addEventHandler ( "onClientPlayerVehicleEnter", getLocalPlayer(), disableFireForHydra ) Fr rhino replace hydra id with rhino id
-
I suggested you to use function on marker hit ! Best way or add both punch doors models !!
-
Thats the reason never try stolen resources or leaked resources until you r expert in fixing them
-
As I think not possible to make non punch doors - punch doors I never seen some one doing this too ,all do is adding markers for non punch doors with markers+set interior position !!
-
How to extract files/resources from servers?
Storm-Hanma replied to RevertRengar's question in Client
You mean cloning? As I seen you t trying to clone servers by check private resources on your local files of MTA you can create own map,skins from GTA inside ,GTA all etc.. Why try to clone? Well another thing you want all those things only for you ? Well that not possible for maps for skins its possible by installing auto skins which you can get from GTA modding ,only you can see these skins other can't see your skins -
This post don't make sense if you want to create gang war mode then start working create new resources or use community resources good luck..
-
You news to use same id of the door which open by hit some doors don't open door on hit ,use the same id which open
-
the problem is in dimension and joining event look out the code function signupForDF(client) if (exports.playerEvents:isEventStarted("Hydra Dog Fight") ~= true) then return outputChatBox("This event is not yet started", client, 255, 0, 0) end player cant join event (fix this by your own)and if you fixed it then leave dont paste the code here there is a chance to steal your ideas! isuggest you 1 dimension keep it some thing which is suitable for all players,i checked your code so i don't want to fix these here so look out and fix them by your own its works fine for me in my local test ! if (getElementDimension(client) > 0) then outputChatBox("Your dimension doesn't allow you to join the Hydra Dog Fight", client, 255, 0, 0) return end
-
run debugscript 1 and tell me the errors! u had given dimension 800 look out that to when the player is not in correct dimension then the output msg will display i suggest you to run debugscript
-
were is team name?give team name hhh getPlayerTeam(source) for example look these (getPlayerTeam(thePlayer)) == "Staff" ) then
-
Its looks staffs are immatures
-
Check this out https://forum.multitheftauto.com/topic/98688-project-mtabattlegrounds-mtabg/
-
scripters help Need [pubg] battle ground gamemode
Storm-Hanma replied to #Heshan||eUNLOCK||'s topic in Resources
Idk much I seen the trailers on YouTube -
You need to tell special future server have post some pics ..
-
scripters help Need [pubg] battle ground gamemode
Storm-Hanma replied to #Heshan||eUNLOCK||'s topic in Resources
Well its already open by other guy so you copying him? I suggest you to contact the owner of MTA pubg server -
[LF] I'm looking for a partner (co owner)[NON PAID]
Storm-Hanma replied to DiGiTal's topic in Looking for staff
I can work with freeroam mode ,I am experienced in freeroam from 5 years and I can script own works digital And I want to if you have credit card or PayPal money for paying top 14 position then it will good to bring players that's why I am asking My discord - khadeercasino#9704- 1 reply
-
- 1
-
-
use this resource made by me https://community.multitheftauto.com/index.php?p=resources&s=details&id=14809 edit map,lua and add x and y position u want to add player cant use weapons and cant fire too! add greenzones were ur maps r located!
-
what u mean u need to ask in proper way we cant even understand u so how can we help you?
-
Forced parachute jump on changing position
Storm-Hanma replied to spaghettikiller's topic in Scripting
--------------------------- -- Set position window --------------------------- do local screenWidth, screenHeight = guiGetScreenSize() if screenHeight < 700 then g_MapSide = 450 else g_MapSide = 700 end end function setPosInit() local x, y, z = getElementPosition(g_Me) setControlNumbers(wndSetPos, { x = x, y = y, z = z }) addEventHandler('onClientRender', g_Root, updatePlayerBlips) end function fillInPosition(relX, relY, btn) if (btn == 'right') then closeWindow (wndSetPos) return end local x = relX*6000 - 3000 local y = 3000 - relY*6000 local hit, hitX, hitY, hitZ hit, hitX, hitY, hitZ = processLineOfSight(x, y, 3000, x, y, -3000) setControlNumbers(wndSetPos, { x = x, y = y, z = hitZ or 0 }) end function setPosClick() setPlayerPosition(getControlNumbers(wndSetPos, {'x', 'y', 'z'})) closeWindow(wndSetPos) end function setPlayerPosition(x, y, z) if getElementData ( localPlayer, "attached" ) then return end if getElementData(g_Me, "timer.setpos") == "cooldown" then errMsg('Please Wait 10 Seconds Before Warping Again.') return else if not isPedInVehicle(g_Me) then setElementData(g_Me, "timer.setpos", "cooldown") setTimer(setElementData, 10000, 1, g_Me, "timer.setpos", "normal") end local elem = getPedOccupiedVehicle(g_Me) local distanceToGround local isVehicle if elem then errMsg('Please leave the vehicle to change your position.') return else elem = g_Me distanceToGround = 0.4 isVehicle = false end local hit, hitX, hitY, hitZ = processLineOfSight(x, y, 3000, x, y, -3000) if not hit then if isVehicle then server.fadeVehiclePassengersCamera(false) else fadeCamera(false) end setTimer(setCameraMatrix, 1000, 1, x, y, z) local grav = getGravity() setGravity(0.001) g_TeleportTimer = setTimer( function() local hit, groundX, groundY, groundZ = processLineOfSight(x, y, 3000, x, y, -3000) if hit then local waterZ = getWaterLevel(x, y, 100) z = (waterZ and math.max(groundZ, waterZ) or groundZ) + distanceToGround if isPlayerDead(g_Me) then server.spawnMe(x, y, z) else setElementPosition(elem, x, y, z) end setCameraPlayerMode() setGravity(grav) if isVehicle then server.fadeVehiclePassengersCamera(true) else fadeCamera(true) end killTimer(g_TeleportTimer) g_TeleportTimer = nil end end, 500, 0 ) else if isPlayerDead(g_Me) then server.spawnMe(x, y, z + distanceToGround) else setElementPosition(elem, x, y, z + distanceToGround) if isVehicle then setTimer(setElementVelocity, 100, 1, elem, 0, 0, 0) setTimer(setVehicleTurnVelocity, 100, 1, elem, 0, 0, 0) end end end end end function updatePlayerBlips() if not g_PlayerData then return end local wnd = isWindowOpen(wndSpawnMap) and wndSpawnMap or wndSetPos local mapControl = getControl(wnd, 'map') for elem,player in pairs(g_PlayerData) do if not player.gui.mapBlip then player.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and 'localplayerblip.png' or 'playerblip.png', false, mapControl) player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14, player.name, false, mapControl) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetFont(player.gui.mapLabelShadow, 'default-bold-small') guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255) player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14, player.name, false, mapControl) guiSetFont(player.gui.mapLabel, 'default-bold-small') guiLabelSetColor(player.gui.mapLabel, 0, 0, 0) for i,name in ipairs({'mapBlip', 'mapLabelShadow'}) do addEventHandler('onClientGUIDoubleClick', player.gui[name], function() server.warpMe(elem) closeWindow(wnd) end, false ) end end local x, y = getElementPosition(elem) x = math.floor((x + 3000) * g_MapSide / 6000) - 4 y = math.floor((3000 - y) * g_MapSide / 6000) - 4 guiSetPosition(player.gui.mapBlip, x, y, false) guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false) guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false) end end addEventHandler('onClientPlayerChangeNick', g_Root, function(oldNick, newNick) if (not g_PlayerData) then return end local player = g_PlayerData[source] player.name = newNick if player.gui.mapLabel then guiSetText(player.gui.mapLabelShadow, newNick) guiSetText(player.gui.mapLabel, newNick) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetSize(player.gui.mapLabel, labelWidth, 14, false) end end ) function closePositionWindow() removeEventHandler('onClientRender', g_Root, updatePlayerBlips) end wndSetPos = { 'wnd', text = 'Set position', width = g_MapSide + 20, controls = { {'img', id='map', src='map.png', width=g_MapSide, height=g_MapSide, onclick=fillInPosition, ondoubleclick=setPosClick}, {'txt', id='x', text='', width=0}, {'txt', id='y', text='', width=0}, {'txt', id='z', text='', width=0}, {'btn', id='close', closeswindow=true}, }, oncreate = setPosInit, onclose = closePositionWindow } function setPlayerPosition(x, y, z) if getElementData(g_Me, "timer.setpos") == "cooldown" then errMsg('Please wait at least 30 seconds before seting your position again.') return end if getPedOccupiedVehicle(g_Me) then errMsg('Please leave the vehicle before changing your position.') return end if getElementAttachedTo(g_Me) then errMsg('Please unglue from another object before setting your position.') return end setElementData(g_Me, "timer.setpos", "cooldown") setTimer(setElementData, 30000, 1, g_Me, "timer.setpos", "normal") fadeCamera(false) setTimer( function() setCameraMatrix(x, y, 600) setElementPosition(localPlayer, x, y, 600) setElementInterior(localPlayer, 0) server.setElementInterior(localPlayer, 0) setCameraInterior(0) setCameraTarget(localPlayer) server.giveMeWeapon(46, 1) fadeCamera(true) end, 500, 1) --[[local elem = g_Me local distanceToGround = 0.4 if isLineOfSightClear(x, y, 3000, x, y, -3000, true, true, true, true, true, false, false, nil) then fadeCamera(false) setTimer(setCameraMatrix, 1000, 1, x, y, z) end g_TeleportTimer = setTimer( function() local hit, groundX, groundY, groundZ = processLineOfSight(x, y, 3000, x, y, -3000, true, true, true, true, true, false, false, false, nil, true, true) if hit then local waterZ = getWaterLevel(x, y, z, true) z = (waterZ and math.max(groundZ, waterZ) or groundZ) + distanceToGround setElementPosition(elem, x, y, z) setElementInterior(elem, 0) server.setElementInterior(g_Me, 0) setCameraInterior(0) setCameraTarget(g_Me) fadeCamera(true) killTimer(g_TeleportTimer) g_TeleportTimer = nil end end, 500, 0)]]-- end replace the code in fr_cilent.lua under setposition and if you want remove the error msg or let it be as i think u r copying groam style!! -
U will get all pack from YouTube search cit,saur,CSG scripts and there will be a channel name ihoussam heleaks all scripts download them
-
U can set damage for weapons see MTA sa wiki u will get there all info u need
-
Update : merry Christmas too all now we r giving free 50 slots without points all u need to do is register on forum and complete the 10 post requirements and claim ur free 50 sv slots ,it starts from DEC 25 end on 1 Jan so pls register asap and complete ur requirement all info can be seen below link Merry Christmas to all https://pirateshosting.com/showthread.php?tid=104&pid=416#pid416
- 52 replies
-
- 1
-
-
- free game servers
- mtasa
-
(and 1 more)
Tagged with:
