Cloudhunter
Members-
Posts
47 -
Joined
-
Last visited
Everything posted by Cloudhunter
-
Just noticed this in the changelog Seems pretty targeted Cloudy
-
Ever wondered why people don't reply? You are freaking annoying. Bloody learn how to code LUA yourself instead of having to ask all the time. Cloudy
-
Sorry about the delay. Not had much chance to work on it. All going well, I should have time to work on it tomorrow. Cloudy
-
Just an update. Done quite a bit of work on it today. Vote kicking is now operational. Also added another command, getPlayerFromNickOrID. Which basically, does what it says on the tin. This way, you can easily have scripts which work with both nick's and ID's! I MAY have a release sometime in the next few hours; depends how well the scripting goes. Cloudy
-
Well, there is only one relevant external function at the moment, and that is getPlayerByID(ID). Does exactly what it says on the tin, gets a player object from an ID. If the ID/Player doesn't exist, it returns false. I won't get chance to even go near the code until Monday. PM by ID is easy, I'll do that. Cloudy
-
Right, I'll continue it. I'll be starting on it Saturday, Sunday, or Monday If I don't end up finishing it within the next week, I'll release the code for you to do with it what you wish. At present it: Assigns each player an ID from 1 to 200 When a player leaves the server, or get's their ID reassigned, it frees up the ID from the pool Allows admin's to set a player's ID - but only if it's not an already taken ID. It also allows you to set an ID outside the range - 1337 was a good test one Allows people with access to kick players by ID Adds a new column on the scoreboard for ID's Displays ID in player chat - but unfortunately it also does the same thing which team based games and anything that change the player nick colour does - meaning that you get double messages. The only way to fix this, is to either disable the function in my script (I'm thinking of detecting when resources start, and disabling the feature if it's one which does this) or to remove the offending lines of script from the game mode. What I'm planning to add is: Banning by IP Banning by serial Integration with votekick (either by editing the votekick script, or by interfacing with it if it has any exportable functions) Temporary ban on kick by script, to stop people from rejoining straight away. (Although, that could possibly be a better function for another script) An exportable function for scripters, getPlayerByID() (most of the work is already in place for this) If you have any suggestions, please let me know Cloudy
-
Hmm... Well I've already got the beginning's of an ID script operational, basic kicking by ID is already there. If there is still demand for it, I'll work on it Saturday and try and get it working with votekick etc. Interested? Cloudy
-
I don't think it's a steam problem. Try disabling the Dynamic Menu, using the coreconfig.xml specified in the wiki. Link below. http://development.mtasa.com/index.php? ... sh_screens Cloudy
-
Just try the copygtacontrols command It should fix alot of problems. Cloudy
-
destroyElement... bad argument when tying to destroy marker
Cloudhunter replied to Franc[e]sco's topic in Scripting
That's where cancelEvent() comes in handy, instead of adding health. Cloudy -
That code is inefficient, having two functions triggered when it could be done in one. button = guiCreateButton( 0.1, 0.2, 0.10, 0.03, "Admin!", true, WindowForm ) button1 = guiCreateButton( 0.1, 0.3, 0.10, 0.03, "Admin!", true, WindowForm ) addEventHandler ( "onClientGUIClick", getResourceRootElement(getThisResource()), function ( ) if (source == button) then outputChatBox ( "Admin! I Need You!, Help Me!!" ) else if (source == button1) then outputChatBox ( "Admin! I Need You!, Help Me!! (1)" ) end end ) Much better Cloudy
-
Search around. People have had exactly the same problem as you and fixed it. Cloudy
-
Ah! Thanks for the information Cloudy
-
Mine is also a bit slow - I think it's the streamer taking alot of CPU usage. Cloudy
-
The maximum is 255, so that leaves 256 Cloudy
-
Of course it isn't - hasn't this library shown that things can be done without the Lua sockets library? Cloudy
-
Yup, extremely simple. Although, I think I'll wait until DP3 until adding that, as the onClientNickChange event will help alot, and make it alot less disruptive. Cloudy
-
LUA can't tell the difference between bool and int/float
Cloudhunter replied to AcidDK's topic in Scripting
They already implement custom functions. There should be no harm in adding extras to Lua in order to get it working more intuitively. Cloudy -
Locking it to your nickname is insecure. It'd be much better to restrict the resource to your account in the ACL. Cloudy
-
I released the script to protect against this - viewtopic.php?f=91&t=21339&p=268571#p268571 Enjoy Cloudy
-
Hello all. As you may be aware, some people put "`" in their name to avoid being kicked, and are usually cheaters. Based on a bug report, I've made a script that will kick anyone with that in their nick, giving them 30 seconds to change it first. It also checks whether people change their nick to include "`". It is heavily based on AlienX's anti cheat script - without it, this script wouldn't exist yet . Instructions for use: Not many, just make sure the script has privileges to kick players. Install the zip file in the server resources folder, start it in any manner you wish and voila! Protection against nick cheaters. Feel free to share any feedback you might have, and I'll do my best to accommodate your suggestions when I have time. If you want any more nick conditions adding, please let me know. That's it for this post, enjoy the script! Edit: First release had a bug, and a typo. Here's the updated link Download here: http://dedicated.janipewter.net/upload/antinamecheat.zip Many thanks to Jani for testing the file on his server, and for hosting the file Cloudy
-
I believe it's the CPU speed that is letting you down. I too have a good graphics card and get the same thing, yet it's alot smoother in single player. Cloudy
-
are you speaking fore him or what ? No, he's just quoting the text that BlackDragon put in there really small. Cloudy
-
Here you go - simple server-side script for you - untested, but should work. function maxBikeCycle () setPlayerStat ( source, 229, 999 ) setPlayerStat ( source, 230, 999 ) end addEventHandler ( "onPlayerJoin", getRootElement(), maxBikeCycle ) Put it in a file called maxstats.lua in a folder in the resources folder, and make a meta.xml with this in it: <meta> <info author="yournamehere" description="maxes the bike and cycle skill on player join" type="script" version="1.0.0" /> <script src="maxstats.lua" type="server" /> </meta> Hope that helps Cloudy
-
Because you can? Cloudy