Jump to content

Dark Dragon

Members
  • Posts

    1,619
  • Joined

  • Last visited

Everything posted by Dark Dragon

  1. \MTA San Andreas\server\mods\deathmatch\resources\ leech >
  2. Dark Dragon

    Slope

    ctrl + page up;page down / arrow up;arrow down but this is the wrong section to ask about the map editor
  3. unfortunately your hex code will fail coloring anything as long as you don't allow color code to be used in outputChatBox's arguments (it's disabled by default). you also forget to add cancelEvent(), in the current form you would see everything on the chat twice. chatRadius = 25 -- Units function sendMessageToNearbyPlayers( message, messageType ) if messageType == 1 then local posX, posY, posZ = getElementPosition( source ) local chatSphere = createColSphere( posX, posY, posZ, chatRadius ) local nearbyPlayers = getElementsWithinColShape( chatSphere, "player" ) destroyElement( chatSphere ) for index, nearbyPlayer in ipairs( nearbyPlayers ) do -- PUT COLOR IN HEX format, example red = #FF0000 outputChatBox ( "#FF0000" .. getPlayerName ( source ) .. " says: " .. message, nearbyPlayer,255,255,255,true ) end cancelEvent() end end addEventHandler( "onPlayerChat", getRootElement(), sendMessageToNearbyPlayers ) besides, i guess he wants to have different players having different colors. for your use i'd suggest screwing the colshape and just use getDistanceBetweenPoints3D for each player (getElementsByType("player")) element and the player who sent it, for the colors you could just use getPlayerNametagColor or get/setElementData of course you can keep it the way you currently do it and just use getPlayerNametagColor or get/setElementData and the color argument in outputChatBox in both cases you should use the color code to color the text after the players name in some neutral color
  4. Dark Dragon

    Snow mods

    if you searched carefully you would have found lots of servers with sounds and few with custom models and really, having snow on san andreas makes no sense and would cause a huge download, because nearly all textures would need a replacement
  5. Dark Dragon

    Cannot start

    yes but as gamesnert said, mta race is not even supposed to support windows vista and windows 7, you'll have to stick with the "new" mta
  6. 1. yes you can 2. use color code (# and 6 digits of hexadecimals representing RGB for instance #FF0000 will let the text appear in red) 3. i guess you are searching for the audio functions
  7. Dark Dragon

    Cannot start

    yes this forum is used but you could give people some time to reply. corrupted files usually try to say "download/install me again".
  8. Dark Dragon

    job :(

    the problem in this code is that a vehicle element will never be equal to a number/integer. use getElementModel to get the vehicle model id
  9. there are many ways you could do this, tell us how you would like it to be then we can roughly say what you'll need to do.
  10. function pedFuntion(player) local x,y,z = getElementPosition(player) createPed(0,x+3,y,z) end addCommandHandler("ped",pedFunction)
  11. Dark Dragon

    Need Urgent help

    demoman is a spy! \MTA San Andreas\server\mods\deathmatch\resources\ here you should find them
  12. you're sure you know how to use hamachi?
  13. and let me guess ,everyone else on the server should be forced to wait too. great. simply great. by the way, working while playing will cause both, crappy work and awful playing
  14. there are multiple ways, the easiest would be to rename it so it overwrites the old scoreboard
  15. are you running freeroam?
  16. the problem here is that currently you are missing an "end", if you type "else if" instead of "elseif" else and if will both expect to be ended with "end" somewhere, remove the space and it should be fine.
  17. That's bullshit, it is only triggered once
  18. which? and for the second question, it's race
  19. a crash is enough error don't you think? you should rename the marker or the function and also attach the function just to this one marker, not to all elements (getRootElement()) and what is getNickFromPlayer supposed to do? you dont use it and it sounds more like a function
  20. Dark Dragon

    Fallout

    only if you make the fallout mode map compatible or only want to play this one map, just like hay fallout is not supposed to be fed with maps (i assume by making a new map you mean to change the positions of the ground plates)
  21. it seems like this is going to be another fail topic.
  22. then try to use the ip from hamachi
×
×
  • Create New...