Jump to content

IIYAMA

Moderators
  • Posts

    6,036
  • Joined

  • Last visited

  • Days Won

    206

Everything posted by IIYAMA

  1. I can't see the bug. Write: /debugscript 3 -- for finding your error. Mind: this script needs admin rights for kicking a player. First check what is wrong with the script, bevore you are going to say it is broken.
  2. Small question: Where will account data being saved? On the server or on your own pc?
  3. What is the server side? triggerServerEvent("givem",getLocalPlayer()) You can't trigger to nothing....
  4. https://wiki.multitheftauto.com/wiki/GetElementPosition https://wiki.multitheftauto.com/wiki/GetVehicleRotation
  5. I don't get what you mean. You mean this? outputChatBox(sMessage, player, 255, 0, 0) This is the outputchatbox inclusive color. R G B Now my question, are you a pro/normal scripter or are somebody that add scrips? I get ... (omg I hate your avatar)
  6. Thank you for your help Kenix. I understand it totaly I have get a PM from Solidsnake about "doubleposting" at this topic, so I think I will end it at here.
  7. So this will happen? function fMain( ) -- execute function local nVar = 1 -- the value = 1 if nVar == 0 then -- check if it has been changed return false -- it will not return to this function end return true -- execute function again? end print( fMain( ) -- Output:true -- output ??? )
  8. function fTest( ) return 1 end ftest = 1 right? nValue = fTest( ) -- We call function fTest and function return number 1. print( fCheck( nValue ) --Call function fCheck with argument variable nValue ( number 1 ). ) > nValue = ftest and print it.
  9. Yes I mean that. How does it work lol. I am sorry but this is something that makes me I did. But still.
  10. I see sometimes the word return in a script, I looked at wiki and I still don't understand why people use it... Can somebody explane this part of scripting? What do I think: It will activate the function again.
  11. He maybe created new group for his members and checked it with local account = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then I use it for members so they can use special commands without being a mod/smod/admin.
  12. If something is wrong etc. You can tell me the names of the mods and I can create the script for you and put it in a zip file. Name: .txd/.dff/skin
  13. yes I am sky from cod2mod Folder > meta.xml and skin.lua
  14. IIYAMA

    How ?

    MTA does not allow it, you need to script it on another way and pls remove that annoying smilley ... I seriously don't like it, to see people crying when they are not........ You can use outputchatbox function chat(text, msgtype) local root = getRootElement() local name = getPlayerName(source) cancelEvent(true) outputChatBox("#0066FF" .. name .. ":#0066FF " .. text, root, 255, 255, 255, true) end addEventHandler("onPlayerChat", root, chat) You have to do the rest of the script and I think you have to work with elementdata.
  15. 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
  16. 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.
  17. showPlayerHudComponent ("money", false)
  18. https://community.multitheftauto.com/index.php?p= ... ils&id=614
  19. 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
  20. 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)
  21. 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.
  22. 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.
  23. 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.
×
×
  • Create New...