-
Posts
6,061 -
Joined
-
Last visited
-
Days Won
208
Everything posted by IIYAMA
-
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.
-
Small question: Where will account data being saved? On the server or on your own pc?
-
What is the server side? triggerServerEvent("givem",getLocalPlayer()) You can't trigger to nothing....
-
https://wiki.multitheftauto.com/wiki/GetElementPosition https://wiki.multitheftauto.com/wiki/GetVehicleRotation
-
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)
-
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.
-
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 ??? )
-
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.
-
Yes I mean that. How does it work lol. I am sorry but this is something that makes me I did. But still.
-
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.
-
How to Make Gate Opened Only when Group Member are near that
IIYAMA replied to Jokeℝ1472771893's topic in Scripting
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. -
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
-
yes I am sky from cod2mod Folder > meta.xml and skin.lua
-
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.
-
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
-
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.
-
showPlayerHudComponent ("money", false)
-
je hebt mods gebruikt in je gta?
-
https://community.multitheftauto.com/index.php?p= ... ils&id=614
-
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
-
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)