-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
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)
-
Hmmm, it seems it has been successfully installed, Does Single Player work?
-
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 )
-
It seems as if the team "Police" isn't valid or maybe it's like this "police".
-
Sorry man, but you can't get anything that's dealing with netc.dll
-
Can you please download and run this MTADiag, then post the generated MTA Pastebin url here please.
-
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.
-
Ya, download it again then restart your computer and try playing MTA again
-
Just download the latest version of mta here: https://www.mtasa.com then just run it over the same folder/directory and done
-
Ok, not really steal, but they wouldn't want to use another projects code
-
Nah, there's no way for any one could do that.
-
You already added that...
-
Well, it does says "Moved temporarily"...
-
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
-
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?
-
Um... Those links/downloads was for your wireless and Ethernet drivers... Connecting you to the internet
-
Sorry but we don't allow wirez here, but you could try buying it from Steam: http://store.steampowered.com/app/12120/
-
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 "_".
-
Can you tell us when it crashes please?
-
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.
-
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.
-
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
-
Please download this: http://www.nvidia.com/object/notebook-w ... river.html
-
Does single player work? Does the same happen in single player?