
teQuilla
Members-
Posts
22 -
Joined
-
Last visited
Everything posted by teQuilla
-
You should really stop saying people leak or steal scripts when the scripts are infact open-source . He also gave credits to who made it , and didn't said it's his. On : There should be a tutorial about this , find it on their site .
-
You're welcome , I spotted a mistake though. It was jailing the dude for the wanted points in miliseconds , just edited so it jails him for seconds. Check the new code
-
function getwp(player) local wp = getElementData(player,"wantedpoints") if wp == nil then setElementData(player,"wantedpoints",0) end if not wp == 0 then local seconds = sToMs(wp) jailTheDude(player,s) -- Oops , edit fail ._. end end -- Please note jailTheDude is not a real function , you should use your own.. function sToMs(s) -- 1 second is 1000 miliseconds local s = s*1000 return s end -- Should work ._.
-
LUA is case-sensitive , I don't think ROOT works , though you could replace it by simply " root " ._. root is the global for "getRootElement()" , like localPlayer .
-
How do you declare those wanted points or whatever ? If you mean wanted level , here it is function outputWantedLevel (player,command) local wantedLvl = getPlayerWantedLevel (player ) if wantedLvl == 5 then --jail end end addCommandHandler ( "wanted", outputWantedLevel )
-
local r,g,b = 255,0,0 Why are you still using this line if you don't use your variables anyway ? You could use it like this if you would like , but I find no use in it. outputChatBox(theMessages[math.random(#theMessages)],root,r,g,b)
-
Thank you This is indeed very helpful
-
Is there any way to remove the last character from a string ? Like "password" -> "passwor" Can you give me any examples too , please ? Strings part is not my best .
-
If adding 3 zeros is hard for you , use this script everytime you want to convert seconds to milliseconds function sToMs(s) return s*1000 end sToMs(5) -- -> 5000
-
Hi LinKin , my name is teQuilla. I've made over $200 with scripting for MTA , and the experience is pretty fine . Had some difficulties sometimes , but we fixed it in the end. I see you're concerned about the security of your scripts . Everybody is , as for the luac encryption , it doesn't helps at all , because there are alot of decompilers out there. Though you might want to use luac for small scripts ( Vehicle Spawner for example . ) , but for big gamemodes ( Like Race including all the fancy stuff , or vH scripts ) you might want to do your own security system . I know this sounds like a stupid idea for alot of you , but creating a security system that requires a License key , that once used it registers the IP of the server in a website , and everytime a script or something from the gamemode is run , it requires a check that the License is valid , and compares the website's IP to the server's IP . To prevent them for editing this edit system , you should use .luac encryption , and you need a pattern that only you know for the license key , then preferably use sha256 to encrypt it even further. I know this might sound stupid and a lot of work to do for you , but for me it's working like charm . Sorry for my english , it's 3 AM here and I'm pretty tired . If you didn't understand what I told you , just leave a comment and I'll explain tomorrow .
-
CVC , then again , he's going to lose the table everytime he's restarting the script .
-
Maybe I'm asking to much , but can you please translate it into english , so we have an idea what you want to do there ?
-
Account data is your friend in that case , just save the serial of the player when he logs in , and use the event : onPlayerLogin to get the account , then get the serial through getAccountData , and compare it to who tries to login . If it doesn't match , just use cancelEvent() .
-
The table inside the script is bad , you're going to lose the table everytime the script is getting restarted, I'd suggest you using XML or even account data , but not tables.
-
Bonsai , that is another thing . But still , saying someone stole a script while he didn't , its pretty bad too.
-
local sWidth,sHeight = guiGetScreenSize() local x = sWidth * 0.1 local y = sHeight * 0.1 You might want to lower the 0.1 , its quite a big number there , but you can do it as you want .
-
False. You don't steal if you copy/paste a script that doesn't belongs to you . But you DO steal if you copy/paste a script that doesn't belongs to you , but you claim that the script is yours and you made that script. He didn't said anything about the ownership of the script , but you shouldn't banish him for something he didn't do. The same thing happens in music , have you ever heard of mixtape ? It's basically a singer who doesn't have money to buy beats , and uses free ones , that can be downloaded from a public space . (In our case , MTA:SA Community )
-
If used to much , yes , it could cause lag to the client . But there are alot of variables that play in wether it lags the client or not . CPU and GPU play a big role here though . Depends from case to case.
-
I've been to this forum before , but I lost my username , mail and password , that's why I only have one post ( Well , after I post this ) . I want answers from high-skilled scripters ( 50p , SolidSnake - these I can remember , if I can get an answer from you guys , it would be awesome! ) . 1. guiCreateEdit ( https://wiki.multitheftauto.com/wiki/GuiCreateEdit ) . If you create an edit and set its alpha to 0 , it's going to hide the text too ? Is there anyway of creating an edit-box ( Like this one ) but with transparent background but visible text ? Is there any way of changing the color of the text ? 2. The same for buttons , etc like the edit thing . Can you create a buttons , etc .. with transparent background but with visible text , and again , is there anyway of changing the color of the text ? Thank you for answering , and again , I don't want answers like ( "Just use dxDraw" - that's what I'm going to do if there is no way of doing some of the above ) .