Jump to content

Hazard|

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Hazard|

  1. Like this? function spectatorkill() if (getElementData(getRootElement(),"BlowVehicleEnabled")) then setElementData ( getRootElement ( ), "BlowVehicleEnabled", true ) local theSpectatorTeam = getTeamFromName("Spectators") if ( theSpectatorTeam ) then local players = getPlayersInTeam ( theSpectatorTeam ) for key, player in ipairs ( players ) do local theVehicle = getPedOccupiedVehicle ( player ) if ( theVehicle ) then blowVehicle(theVehicle,false) end end end else outputChatBox("This command is disabled!") end end addCommandHandler("speckill", spectatorkill)
  2. Hello, I'm wondering how you use getElementData in this example (below) to disable / enable the blowVehicle, like if you do /speckill then it outputs to the chatbox > Hazard enables spectator kill / Hazard disables spectator kill. disable = normal (not blowing any vehicles) enable = blows all the vehicles in the spectatorteam function spectatorkill () local theSpectatorTeam = getTeamFromName("Spectators") if ( theSpectatorTeam ) then local players = getPlayersInTeam ( theSpectatorTeam ) for key, player in ipairs ( players ) do local theVehicle = getPedOccupiedVehicle ( player ) if ( theVehicle ) then blowVehicle(theVehicle,false) end end end end) addCommandHandler("speckill", spectatorkill) Could you do it? I would really appreciate that. Thanks alot This is what I mean with getElementData function toggleRespawnModeFunc ( player ) local now = getElementData ( getRootElement ( ), "cwRespawn", true ) if now then state = "disabled" else state = "enabled" end echo ( "*"..getUncolored ( player ).. " has " ..state.." respawn mode" ) setElementData ( getRootElement ( ), "cwRespawn", not now ) setElementData ( resRoot, "respawn", getElementData ( getRootElement ( ), "cwRespawn" ) ) -- end end addCommandHandler ( "respawn", toggleRespawnModeFunc ) setElementData ( resRoot, "respawn", getElementData ( getRootElement ( ), "cwRespawn" ) )
  3. Cache: When the script file type is "client", this setting controls whether the file is saved on the clients' hard drive. Default is "true". Using "false" will mean the file is not saved.
  4. Atleast you have to getElementSpeed, then dxDrawText to draw the speed on the screen, not sure what you mean (rest of it)
  5. Hazard|

    Fix

    Do you mean like this? addEventHandler("onClientPlayerJoin", root, function() outputChatBox("* #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#006400 Has Joined The Game", 0, 100, 0, true) end)
  6. Hazard|

    Adminnick

    Maybe you mean something like a resource that makes your name look like '|Admin|Zolikaa13' when you're chatting? if so, there should be some resources in the community.
  7. I'd like to share that the server is now changed to the name KekZ DD, hf.
  8. You probably have to use getElementSpeed and calculate the average speed. Look at examples @mta wiki
  9. Hello, I would like to share my first map with you guys, it's a destruction derby map made by Vinspire (me), info below. Spawnpoints: (31)? Spawncar: Cheetah Respawn: none Can't mention more info at the moment. Download link below. http://www.mediafire.com/download/5side2s95mddsyx/%5Bdd%5Dmgk+cross.zip Enjoy! leave comments below
×
×
  • Create New...