Jump to content

IIYAMA

Moderators
  • Posts

    6,089
  • Joined

  • Last visited

  • Days Won

    216

Everything posted by IIYAMA

  1. You need to cancel you msg by using: cancelEvent(true) pls do not start a second conversation about tags. viewtopic.php?f=91&t=41508
  2. IIYAMA

    Tag

    Try: -- server!!! function stafftag(text, msgtype) local root = getRootElement() -- get player local account = getAccountName(getPlayerAccount(source)) -- get account (admin) local name = getPlayerName(source) --your name if (msgtype == 0) then -- the type if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then -- check if admin cancelEvent(true) -- stop using chat outputChatBox("#000000[sTAFF] #0066FF" .. name .. ":#0066FF " .. text, root, 255, 255, 255, true) -- replace with [color=#000000][sTAFF][/color] Name and text end elseif (msgtype == 2) then end end addEventHandler("onPlayerChat", root, stafftag) Here you are.
  3. I don't think this is everything we need. afkCounter -- it does not have something that makes it higher than 1. What is the count of "afkcounter". If something does not have a count it will be a "nill". So: local afkCounter = 0 -- it will start at zero. Unless you make sure it is more complete. I can't fix something, when I am not sure if it is the right place, were it is broken. But try: local afkCounter = 0 -- write above the script... it will set the count to zero when the script starts. If your other part of the script will count up it will be nice.
  4. 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.
  5. Small question: Where will account data being saved? On the server or on your own pc?
  6. What is the server side? triggerServerEvent("givem",getLocalPlayer()) You can't trigger to nothing....
  7. https://wiki.multitheftauto.com/wiki/GetElementPosition https://wiki.multitheftauto.com/wiki/GetVehicleRotation
  8. 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)
  9. 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.
  10. 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 ??? )
  11. 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.
  12. Yes I mean that. How does it work lol. I am sorry but this is something that makes me I did. But still.
  13. 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.
  14. 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.
  15. 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
  16. yes I am sky from cod2mod Folder > meta.xml and skin.lua
  17. 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.
  18. 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
  19. 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.
  20. showPlayerHudComponent ("money", false)
  21. https://community.multitheftauto.com/index.php?p= ... ils&id=614
  22. 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
  23. 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)
  24. 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.
×
×
  • Create New...