Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. Hi Ikiller <meta> <info author="Converter: Ikiller" name="skin" type="script" description="Skin" /> <script src="skin.lua" type="client" /> <file src=" [color=#0000FF] X [/color] .txd" /> <file src=" [color=#0000FF]Y[/color] .dff" /> </meta> -- client script> skin.lua function replaceskin() txd = engineLoadTXD("[color=#0000FF]X[/color].txd", SKINNUMBER) engineImportTXD(txd, SKINNUMBER) dff = engineLoadDFF(" [color=#0000FF]Y[/color].dff", SKINNUMBER) engineReplaceModel(dff,SKINNUMBER) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceskin) addCommandHandler ( "reloadskin", replaceskin ) X = name of the .txd file. Y = name of the .dff file. SKINNUMBER = skin you want to replace. Create folder > create two text files and give them the name "meta.xml" and "skin.lua" > put the script in it and replace the "Y", "X" and "SKINNUMBER" > have fun! Greetings Sky
  2. outputChatBox('Attention! The Train has arrived to Linden Station! (LV) You have 5 minutes to buy a ticket before the train leaves!',getRootElement(),200,0,0) If your outputchatbox works than you maybe.. Maybe you can try the vehicle handling ? https://wiki.multitheftauto.com/wiki/SetElementVelocity So the train wont be able to give more power and if the train enters the station you can freeze it.
  3. showPlayerHudComponent ("money", false)
  4. je hebt mods gebruikt in je gta?
  5. https://community.multitheftauto.com/index.php?p= ... ils&id=614
  6. IIYAMA

    Question

    And no your wrong this script does not work. Because attackers don't exist with weapon 37. see: http://bugs.mtasa.com/view.php?id=4925 For now it s only syncro that can sync that. But I am going to try it on a easy way. Syncro by Bigbadbutler (chaose) https://community.multitheftauto.com/index.php?p= ... ls&id=1065
  7. The resource stealth. Parts by: Slothman Resource does not work correctly, I found 3 crussial bugs) - Spectate does not work. Tirgger client side earlyer than it has been loaded(I have tryed to fix it with help of solit) - Skin bug. Sometimes (the skin changed to that one of the enemy O_o strange...) - Rounds ends bevore it has been started. It also does lagg little in my opinion., even if the server does not have much to do. (not fps)
  8. IIYAMA

    Question

    hmmm Well I was building a anti teamkill fire(motove) script. So I checked the owner of the explosion. Checked distance and slapped it. This did not work. (no attacker) But I have a better idea now.
  9. IIYAMA

    Question

    but it is not possible to set damage? They must be make a handler..... onElementDamage... -_-" or onElementGetHitByExplosion.. damn... Damn I love the resource syncro with its damage syncs... Only I hate the anti bug use script.
  10. IIYAMA

    Question

    Hello My Question: Is it possible to let 1 player kill another player by script? I mean a kind of slap script that slaps this player by another player. It must be also visible in killmessage. Player > kills > Player.
  11. Well, did you do it?
  12. I get the feeling this script is stolen....
  13. First of all always put a handler... when must this ... script be activated..... Second of all I have never used a return on my script. I always use else... I have no idea why use a return instead of using else. ........ why are you scripting so PRO and so not PRO....... You made that script or you just get it out of another script. I don't get it. BE MORE CLEAR
  14. lol I love note +++, but I will try this to
  15. well that means your export function does not work very well..... This does not work: local rank12 = exports.race:getPlayerRank( player_Wasted ) So put this script in race folder. Make sure you also change meta there. and use: local rank12 = getPlayerRank( player_Wasted ) Does this not work.... than the rank script of race does not work like that. ... Don't be stuppit to write the operators like that... -- in race folder function bastardDied( player_Wasted ) local rank = getPlayerRank( player_Wasted ) if(rank == 2) then local pointsToDie = 5 local playerPoints = tonumber">tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints + pointsToDie ) outputChatBox ( "#c0c0c0* #abcdef"..string.gsub(getPlayerName (player_Wasted),"#%x%x%x%x%x%x","").." #c0c0c0has finished this round in second place and got #abcdef5 #c0c0c0points!", root, 255, 255, 255, true ) elseif(rank == 3) then local pointsToDie = 3 local playerPoints = tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints + pointsToDie ) outputChatBox ( "#c0c0c0* #abcdef"..string.gsub(getPlayerName (player_Wasted),"#%x%x%x%x%x%x","").." #c0c0c0has finished this round in third place and got #abcdef3 #c0c0c0points!", root, 255, 255, 255, true ) elseif(rank > 3 and rank < 31) then local pointsToDie = 1 local playerPoints = tonumber">tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints - pointsToDie ) outputChatBox ( "#c0c0c0* #abcdefYou died and lost #abcdef1 #c0c0c0point!", player_wasted, 255, 255, 255, true ) end end addEventHandler("onPlayerWasted", getRootElement(), bastardDied)
  16. Why don't you check your script first? try this.
  17. First shutdown your server. Go to mta folder>server>mods>deathmatch open with notepath> mtaserver.conf Do ctrl + f and look for "fpslimit" or just find the word fpslimit. Between here: (normally 36) You better change this to max 45/50. If you go high there will be some strange bugs. (100 fps = you can't walk with m4, if you is able to make that 100 fps.) Then start your server again.
  18. I am stuppit or does he means how to find a damn word in a not path.... maybe you mean the command: ctrl + F ???? (windows) CMD + F (apple... if you have a apple like me I write sometimes my codes at school )
  19. lol did not know
  20. well go look for color codes...
  21. You want people to become mods and smods, is it not?
  22. ok
  23. drake why use that operator? Why not use: elseif(rank > 3 and rank < 31) then -- and elseif(rank > 30 ) then
  24. I am blind? I already throwed it of my script... oh not lol.. This script should not need to work in the first place.
  25. oh shut the fuck off you didn't even mark the things you changed and also you let the script much to long. I don't get it how somebody from other side can trigger your script. end end addEventHandler("onPlayerWasted", getRootElement(), bastardDied) end end You also need to removed one end.> You removed inpairs
×
×
  • Create New...