Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. oh, ok, use this to add another tab: guiCreateTab Please note that you would need to find out the windows var in order to make the tab on the window.
  2. Sorry, but we don't know what script you are talking about and second, we don't help people who edits scripts for there needs without asking the owner/scripter.
  3. use these: set get More Info: Settings system
  4. Please note that if you're using a small image and you are trying to expand it, it wont look nice.
  5. Did you check the folder if the deathmatch.dll is there?
  6. Jaysds1

    GTA:SA

    ok, we don't support Pirated/Free GTA:SA, anyways, if it works, download MTA and run it, and you would be able to go on servers to have fun.
  7. try this: --Markers-- LVMarker = createMarker ( -47.673049926758, -62.346290588379, -10.607986450195, "cylinder", 1.5, 255, 0, 0, 170 ) SFMarker = createMarker ( -47.673049926758, -67.268165588379, -10.607986450195, "cylinder", 1.5, 0, 255, 0, 170 ) LSMarker = createMarker ( -47.673049926758, -71.514259338379, -10.607986450195, "cylinder", 1.5, 0, 0, 255, 170 ) --handles the joining of countries-- function LVSpawn ( sourcePlayer ) --source is the marker aclGroupAddObject( aclGetGroup("LVCiv"), "user."..getAccountName(getPlayerAccount(sourcePlayer)) ) spawnPlayer ( sourcePlayer, 1685.8544921875, 993.6201171875, 10.8203125) end addEventHandler( "onMarkerHit", LVMarker, LVSpawn ) function SFSpawn ( sourcePlayer ) aclGroupAddObject ( aclGetGroup("SFCiv"), "user."..getAccountName(getPlayerAccount(sourcePlayer)) ) spawnPlayer ( sourcePlayer, -2624.373046875, 1412.80078125, 7.09375 ) end addEventHandler( "onMarkerHit", SFMarker, SFSpawn ) function LSSpawn ( sourcePlayer ) aclGroupAddObject ( aclGetGroup("LSCiv"), "user."..getAccountName(getPlayerAccount(sourcePlayer)) ) spawnPlayer ( sourcePlayer, 1727.70703125, -1118.552734375, 24.085935592651) end addEventHandler( "onMarkerHit", LSMarker, LSSpawn ) -- Checks if the player is in one of the ACL Groups and if not spawns him in a place to choose addEventHandler("onPlayerLogin", root, function(_,curAcc) if isObjectInACLGroup ("user."..getAccountName(curAcc), aclGetGroup ( "SFCiv" ) ) then spawnPlayer ( source, -2624.373046875, 1412.80078125, 7.09375 ) elseif isObjectInACLGroup ("user."..getAccountName(curAcc), aclGetGroup ( "LVCiv" ) ) then spawnPlayer ( source, 1685.8544921875, 993.6201171875, 10.8203125) elseif isObjectInACLGroup ("user."..getAccountName(curAcc), aclGetGroup ( "LSCiv" ) ) then spawnPlayer ( source, 1727.70703125, -1118.552734375, 24.085935592651) else spawnPlayer ( source, -81.016799926758, -81.045509338379, -10.607986450195 ) end end )
  8. I miss read that as eHorny.com lol, anyways, it seems like it's both
  9. wait, this script is for race right?
  10. Since GTA SA Single Player doesn't open/start, I suggest re-installing it then try opening Single Player
  11. ok, while in map editor, can you login then type in /debugscript 3 and then try to open the map, if you see any message in red or yellow, post what it says.
  12. I replied to this topic in the scripting forum: viewtopic.php?f=91&t=48560#p477918
  13. 'setPlayerHudComponent' doesn't exist, try this: function toggleradar(_, onoff, thePlayer) if onoff=="1" then showPlayerHudComponent("radar", true) outputChatBox("Radar was turned on.") elseif onoff=="0" then showPlayerHudComponent("radar", false) outputChatBox("Radar was turned off.") else outputChatBox("Syntax: /setradar [1=on], [0=off]", end end addCommandHandler("setradar", toggleradar)
  14. try this: function mutePlayers() for _, player in ipairs ( getElementsByType ( "player" ) ) do setPlayerMuted(player, true) outputChatBox("#FF0000All has been muted.",player, 255, 255, 255, true ) end end --forgot end addCommandHandler("mute",mutePlayers) function unmutePlayers() for _, player in ipairs ( getElementsByType ( "player" ) ) do setPlayerMuted(player, false) outputChatBox("#FF0000All has been unmuted.",player, 255, 255, 255, true ) end end --forgot end addCommandHandler("unmute",unmutePlayers) addEventHandler("onPollStarting",root,function() mutePlayers() end) addEventHandler("onRaceStateChanging",root,function(state) if state=="LoadingMap" then unmutePlayers() end end) oh, and there was no need for the accounts loop, you could only set players muted.
  15. Code please? :> uh, local maps = {} addCommandHandler("random",function(source) if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("admin")) then outputChatBox("You are not an admin!",source) return end for _,v in ipairs(getResources())do --loop through all the resources if string.lower(getResourceInfo(v,"type")) =="map" then --see if it's a map table.insert(maps,v) --if it is, insert it into our table end end map = unpack(math.random(#maps)) --get a random map from the table startResource(map) --start the map end)
  16. well, if you are in the admin acl then use this function: isObjectInACLGroup BTW, fixed the error
  17. Like this: local maps = {} addCommandHandler("random",function(source) for _,v in ipairs(getResources())do --loop through all the resources if string.lower(getResourceInfo(v,"type")) =="map" then --see if it's a map table.insert(maps,v) --if it is, insert it into our table end end map = unpack(math.random(#maps)) --get a random map from the table startResource(map) --start the map end) ??
  18. ya, GTA SA has limits which MTA can't change or expand...(even though they expanded this Mod)
  19. viewtopic.php?f=91&t=48348#p476873
  20. by any chance, does your map file contain a space? if it does, please change it to '_' or remove the space.
  21. or destroyElement --Would never come back on after, unless created again
  22. Jaysds1

    Can't start maps

    Do you know what's in the map? if you do, do you go in-game and see them?
×
×
  • Create New...