Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. Go into the Resources folder, and you can just place the .zip file there.
  2. xXMADEXx

    Scripts

    Not a request forum
  3. xXMADEXx

    how i can ?

    I've played both of those servers... Neither one of them have this "custom loader" thing that Paplo is speaking of. not impossible i know server did this Can you tell me the server name? So i can see how they did it (or what it looks like.)
  4. Try (not tested): local rx, ry = guiGetScreenSize ( ) addEvent( 'startCountdown', true ) addEventHandler( 'startCountdown', root, function( ) count = 5 curalpha = 0 addEventHandler( 'onClientRender', root, renderCountdown ) setTimer( function( ) count = count - 1 curalpha = 0 playSound ( 'n' . . count . .'.mp3') end, 1000, 5 ) end ) function renderCountdown( ) if count == 0 then removeEventHandler( 'onClientRender', root, renderCountdown ) playSound ( 'go.mp3' ) elseif curalpha <= 235 then curalpha = curalpha + 15 elseif count > -1 then dxDrawText( count, rx / 2 - 765 / 2, ry / 2 - 539 / 2, 765, 539, tocolor( 255, 0, 0, curalpha ), 9.00, 'beckett', 'center', 'center', true, false, true, false, false ) end end
  5. xXMADEXx

    how i can ?

    Huh? This is impossible.
  6. https://community.multitheftauto.com/index.php?p= ... ls&id=6394 Original: https://community.multitheftauto.com/index.php?p= ... ls&id=5406 (This guy keeps uploading scripts that arn't his or are stolen. Its getting really annoying. ) DONE
  7. Most scripters are busy with their own stuff.
  8. https://wiki.multitheftauto.com/wiki/OnClientGUIClick (btw, your sig is fking weird )
  9. viewtopic.php?f=148&t=40809
  10. Not really sure because im not into modeling, etc... But maybe you could make a custom .col file (btw, i have no idea how to make them)
  11. This code will not work
  12. I agree with Dealman (i think, didnt read that whole post lol) but yea, just start small and work your way up. Start with making small and basic resources, and just keep adding until is f**king awsome. That is basicly how I learned LUA.
  13. Line 20: setPlayerTeam ( thePlayer, Teame )
  14. So... Wheres the link
  15. If you downloaded it, can you please give me the link?
  16. Try the code now (I edited it.)
  17. If you had downloaded it, it would be working.
  18. Try: dd = { } dd["dd"]= guiCreateStaticImage(0.331, 0.19, 0.17, 0.305, "images/areny/dd.png", true, arenas, lobby) guiSetAlpha ( dd["dd"], 0.75 ) addEventHandler( "onClientMouseEnter", root, function ( ) if ( source == dd["dd"] ) then guiSetAlpha ( source, 1 ) playSound("sound/btn.mp3") end end ) addEventHandler( "onClientMouseLeave", dd["dd"], function( ) guiSetAlpha ( source, 0.75 ) end ) addEventHandler ( "onClientGUIClick", dd["dd"], moveToDD, false ) function moveToDD2(button) if button == "left" then setElementData (localPlayer,"gamemode","dd", true) setElementDimension (localPlayer,3) outputChatBox ("True") end end
  19. Yes, it does require server side. Without it, the code could be stolen, and we don't give support for stolen/leaked scripts.
  20. lol? It would need the most powerful host on MTA.
  21. xXMADEXx

    [Help]Script

    Here is your example: addEventHandler ( "onPlayerDamage", root, function ( attacker ) outputChatBox ( getPlayerName ( attacker ).." has hurt you!", source, 255, 0, 0 ) end )
  22. -- needs configurable blip colors, and team support root = getRootElement () color = { 0, 255, 0 } players = {} resourceRoot = getResourceRootElement ( getThisResource () ) function onResourceStart ( resource ) for id, player in ipairs( getElementsByType ( "player" ) ) do local r, g, b = getTeamColor ( getPlayerTeam ( player ) ) createBlipAttachedTo ( player, 0, 2, r, g, b ) end end function onPlayerSpawn ( spawnpoint ) local r, g, b = getTeamColor ( getPlayerTeam ( source ) ) createBlipAttachedTo ( source, 0, 2, r, g, b ) end function onPlayerQuit () destroyBlipsAttachedTo ( source ) end function onPlayerWasted ( totalammo, killer, killerweapon ) destroyBlipsAttachedTo ( source ) end function setBlipsColor ( source, commandName, r, g, b ) if ( tonumber ( b ) ) then for id, player in ipairs( getElementsByType ( "player" ) ) do destroyBlipsAttachedTo ( player ) createBlipAttachedTo ( player, 0, 2, r, g, b ) end end end function setBlipColor ( source, commandName, r, g, b ) if ( tonumber ( b ) ) then destroyBlipsAttachedTo ( source ) createBlipAttachedTo ( source, 0, 2, r, g, b ) end end addCommandHandler ( "setblipscolor", setBlipsColor ) addCommandHandler ( "setblipcolor", setBlipColor ) addEventHandler ( "onResourceStart", resourceRoot, onResourceStart ) addEventHandler ( "onPlayerSpawn", root, onPlayerSpawn ) addEventHandler ( "onPlayerQuit", root, onPlayerQuit ) addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end
  23. You cant just say you need help. What part(s) do you need help with?
  24. function moveToDM2(button) if button == "left" then setElementData (localPlayer,"gamemode","[gamemodes]/[race]/race", true) setElementDimension (localPlayer,2) outputChatBox ("True") end end
  25. This is a help page. Not a request page.
×
×
  • Create New...