Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. Jaysds1

    Fix Code

    try this: addEventHandler("onResourceStart",resourceRoot,function() if source~=resource then return end local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 0 , 2 , 0 , 0 , 255 , 255 ) end end)
  2. Jaysds1

    Crashing

    Hmmm, it seems it has been successfully installed, Does Single Player work?
  3. try this: local timeleft = 60 -- Seconds till robber escapes. local rmodel = 495 -- Robber vehicle ID. local pmodel = 599 -- Police vehicle ID. addEvent ( "onMapStarting", true ) addEventHandler ( "onMapStarting", root, function ( ) -- BLIP REMOVAL LOOP for _,player in ipairs(getElementsByType("player")) do --set blip invisible for _,element in ipairs(getAttachedElements(player)) do if getElementType(element) == "blip" then setElementVisibleTo(element, root, false) -- This temporary makes the blip invisable. end end --Assigning Loop if isPedInVehicle(player) then -- If the player is in a vehicle. local theVehicle = getPedOccupiedVehicle (player) local pVehModel = getElementModel(theVehicle) if pVehModel == rmodel then -- If it's the robber vehicle. createBlipAttachedTo(theVehicle, 23) -- Creates a skull blip attached to the robber. elseif pVehModel == pmodel then -- If it's the police vehicle. createBlipAttachedTo(theVehicle, 30) -- Creates a siren blip attached to all cops. end end end setTimer( function() outputChatBox("Robber wins!", root, 255, 0, 0) for _,player in ipairs(getElementsByType("player")) do setElementHealth(player, 0) end end, timeleft*1000, 1 ) end ) addEventHandler("onPlayerWasted", root, function() if isPedInVehicle(source) and getElementModel(getPedOccupiedVehicle(source)) == rmodel then for _,player in ipairs(getElementsByType("player")) do setElementHealth(player, 0) end outputChatBox("Cops win!", root, 255, 0, 0, true) end end ) addEventHandler("onResourceStop", resourceRoot, function() if source~=resource then return end for _,player in ipairs(getElementsByType("player")) do for _,element in ipairs(getAttachedElements(player)) do if getElementType(element) == "blip" then if isElementVisibleTo(element,root) then --check if the blip is visible --if it is then it must be the blip we created earlier destroyElement(element) else --if it isn't then it must be the blip we hide earlier setElementVisibleTo(element,root,true) end end end end end )
  4. Jaysds1

    Fix Code

    It seems as if the team "Police" isn't valid or maybe it's like this "police".
  5. Sorry man, but you can't get anything that's dealing with netc.dll
  6. Jaysds1

    Can't join server

    Can you please download and run this MTADiag, then post the generated MTA Pastebin url here please.
  7. Jaysds1

    Crashing

    Can you please download the following drivers: Graphic Driver After, can you please run another mtadiag and post the generated mtasa pastbin url here again.
  8. Ya, download it again then restart your computer and try playing MTA again
  9. Jaysds1

    change server

    Just download the latest version of mta here: https://www.mtasa.com then just run it over the same folder/directory and done
  10. Ok, not really steal, but they wouldn't want to use another projects code
  11. Nah, there's no way for any one could do that.
  12. Jaysds1

    game-monitor

    Well, it does says "Moved temporarily"...
  13. Ok, Please next time create the topic here: viewforum.php?f=91 next please read through this forum for any help you need: viewforum.php?f=148 And here's how to start off on scripting: viewtopic.php?f=148&t=40809 - Learning Lua viewtopic.php?f=148&t=58890 - Scripting Series
  14. Jaysds1

    Crash MTA Server

    Sorry, next time post the generated MTASA Pastbin url, anyways, Is there something that you do before it crashes, or does it crashes at random times no matter what you're doing?
  15. Um... Those links/downloads was for your wireless and Ethernet drivers... Connecting you to the internet
  16. Sorry but we don't allow wirez here, but you could try buying it from Steam: http://store.steampowered.com/app/12120/
  17. Jaysds1

    HELP

    Please make sure you're updating your Microsoft Updates: http://update.microsoft.com/ After installing anything restart your computer and re-installing MTA again please.
  18. Jaysds1

    maps problem

    Make sure none of the maps have spaces or illegal characters. if they have a space then rename it or change the space to an underscore "_".
  19. Jaysds1

    Crashing

    Can you tell us when it crashes please?
  20. Jaysds1

    need help here!!!

    Are you using Wireless or Ethernet? This would be helpful as we could give you a download for a previous version of the driver, even though it's good to have the latest drivers.
  21. I think the MTA team would more likely to work on it alone than stealing a source code for it, as it wont be the same as what they would want to implant in it... But the "hire an expert" part would be kinda nice... Not sure, but it's up to the MTA Team to make the decision.
  22. well, like they said, they're going to start releasing stable versions of MTA more frequently... As said here: viewtopic.php?f=31&t=58686#p559655
  23. Please download this: http://www.nvidia.com/object/notebook-w ... river.html
  24. Does single player work? Does the same happen in single player?
×
×
  • Create New...