-
Posts
1,619 -
Joined
-
Last visited
Everything posted by Dark Dragon
-
ow, didn't know that one, seems pretty useful!
-
if this happens every thirty minutes there are good chances that one of their advanced scripts is causing problem, you should ask them if there is anything they trigger every 30 minutes (like retrieving and/or saving huge amounts of data, etc) if you find any helpful information please post it, because in general no script should be able to produce a crash, a freeze or any other sort of block.
-
MTA folder not appearing in GTA SA directory
Dark Dragon replied to Youngskeezey's question in Client
older mta versions were used to have the MTA folder right in the Grand Theft Auto directory. however this has been changed, the MTA folder is now located directly in mta's install directory. problems with retrieving the server list are usually not an user fault, if you get it there are high chances that others get it at this time too, retrying it a few times usually solves the problem, if it doesn't i'd recommend you to use the recently played category. if you are getting this issue all the time it could be related to your fire wall (or some nifty anti virus program which thinks it has to do a firewalls job) -
i am afraid but you can't change weapon models at the moment. only weapon textures. besides that zmodeler has been the only free 3d modeling software i found useful, but this may vary from user to user. some people have had success with google sketch up too, but the key is to convert the files into the correct format
-
yes that would work. and in this case you could even save some memory by using true and false instead of an integer setElementData(source,"lightson", true) if(getElementData(source, "lightson") == true) then outputChatBox("Your lights are on!", source) end
-
the key is simply something to find the information later. for example you use setElementData(somePlayer,"phoneNumber",666999333) and later you use getElementData(somePlayer,"phoneNumber") to get the information you have previously set, in this case 666999333 if this way seems uncomfortable to you you can also use a table local playerPhoneNumberTable = {} playerPhoneNumberTable[somePlayerElement] = 666999333 playerPhoneNumberTable[someOtherPlayerElement] = 123123123
-
its pretty simple: function movePlayerToTeam(previousAccount,currentAccount,autologin) setPlayerTeam(source,getTeamFromName("Red")) --set the players team (source of the event) to the team with the name "Red" end addEventHandler("onPlayerLogin",getRootElement(),movePlayerToTeam) --adding an event handler for the onPlayerLogin event of course the team must be existing. use createTeam to create a team hope this helps
-
to find the problem behind this you should enable the debug script (/debugscript 3 while logged in as an admin) and see if there are any errors displayed when you press the r key. also check if you accidentally changed the bind key in settings -> binds
-
yes the old editor was simpler... it could only create race maps. now that there are many many modes, the editor had to find a way to support as many modes as possible using edfs, and much more which makes the whole editor more advanced. unfortunately this also makes it hard to fix all possible problems without screwing other modes/parts of the code. and then there are bug reports like this, which don't help much. the main problem is that people don't seem to understand that the editor is now a resource. it uses all the scripting functions you all know, people with outdated resources but up to date mta complain, they don't know whats wrong and so on. when reporting bugs try to be as specific as possible and include what version you are using. having the most recent version from the resources package is the first step to go
-
if you find mistakes/wrong statements in examples/on wiki pages you should edit them.
-
your version of the race resource must be outdated, download this package and replace it in your servers resources folder (\MTA San Andreas\server\mods\deathmatch\resources\): http://code.google.com/p/multitheftauto ... loads/list then all maps with respawn set to off should no longer allow new joining players to enter the ongoing round
-
hi! did you try the solutions written here: https://wiki.multitheftauto.com/wiki/Kno ... ash_screen they usually help.
-
welcome to the fail "physics" of gta san andreas.
-
Can Somebody teach me how to script RPG server.
Dark Dragon replied to marlonchua20's question in Server
no. but to be honest the differences are no big deal, actually you should be able to get into it very quick when you know c already. -
px,py,pz (line 6) don't seem to exist. might this be the problem?
-
could be server related. maybe they are locked. you can also check the settings -> binds tab and see if the key is bound correctly
-
if you set up teams you can easily check if the players team matches the one which should be able to open the door
-
Your avatar is orange
-
Orange is full of win
-
if these resources don't work for some people tell them to update their mta.
-
this should be at the scripting section but yes. local openArea = createColCuboid(x,y,z,width,depth,height) --you need to replace x,y,z,width,depth,height here local door = createObject(modelid,x,y,z,rotx,roty,rotz) --you need to replace modelid,x,y,z,rotx,roty,rotz here function openTheDoor(element) local move = false if getElementType(element) == "player" then move = true elseif getElementType(element) == "vehicle" then if getVehicleOccupant(element,0) then move = true end end if move then moveObject(door,timetomove,x,y,z,rotx,roty,rotz) --you need to replace timetomove,x,y,z,rotx,roty,rotz here end end addEventHandler("onColShapeHit",openArea,openTheDoor) function closeTheDoor(element) local move = true for i,v in ipairs(getElementsWithinColShape(openArea)) do if getElementType(v) == "player" then move = false break elseif getElementType(v) == "vehicle" then if getVehicleOccupant(v,0) then move = false break end end end if move then moveObject(door,timetomove,oldx,oldy,oldz,oldrotx,oldroty,oldrotz) --you need to replace timetomove,oldx,oldy,oldz,oldrotx,oldroty,oldrotz here end end addEventHandler("onColShapeLeave",openArea,closeTheDoor) untested and of course you have to place all the values correctly in order to make it work. if you need further help, just ask
-
then this is the first step to go. get notepad++. it's an almost impossible task to produce decent code with notepad.
-
Mta:PURPLE owns Mta:Orange
-
for weapons drops simply start the deathpickups resource
-
actually the default race collisions setting for destruction derby (no cps, no respawn) maps is already "off". maybe you're not running the latest version?
