Ownage Owls

Archive => MTA Servers => Suggestions => Topic started by: Wafamde on Jan 9, 2012, 11:12:34

Title: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 11:12:34
Hi.  :)

I made a small resource yesterday that I'm sure you and other race servers can use.
Have a look at it here: http://community.mtasa.com/index.php?p=resources&s=details&id=3508 (http://community.mtasa.com/index.php?p=resources&s=details&id=3508)

Quote
Description:
If any changes to this resource is needed, please let me know here, on IRC or on the forums. Please note that this resource was scripting in a few minutes and is only intended to take care of the vehicle horn issue.

Should there be any problems then please report them to me asap so I can fix it.

------------------------------------------------------------

This script can take care of players that keep pressing the horn down during a race.

Noticed that a few race servers needed a script to kick players abusing the vehicle horn.

It is possible to change both the allowed horn time and the kick message inside the file 'antiHorn.lua'
Default Time: 10 seconds
Default Message: "Abusing Vehicle Horn"

------------------------------------------------------------

To make the resource work, add the following line to your admin ACL.:
<object name="resource.antiHorn"></object>

Example:
<group name="Admin">
<acl name="Moderator"></acl>
<acl name="SuperModerator"></acl>
<acl name="Admin"></acl>
<acl name="RPC"></acl>
<object name="resource.antiHorn"></object>
</group>

------------------------------------------------------------

Your 'acl.xml' file can be found in:
MTA San Andreas 1.2servermodsdeathmatchacl.xml
Title: Re: antiHorn by Wafamde
Post by: Giraffen420 on Jan 9, 2012, 11:17:01
I guess this could be nice for people who get annoyed by the horn..  though Me personally I always play with no sound @ mta so I guess i dont get much out of this.. but still.. nice work!
Title: Re: antiHorn by Wafamde
Post by: rijads on Jan 9, 2012, 12:27:57
keep em releasing:D
Title: Re: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 12:39:53
Glad you guys like it ;-)
Since I play on your servers sometimes, feel free to ask me if you need anything for the server.
Didn't take me more than 5 minutes to script this antiHorn resource, so it doesnt really matter to me as long as it helps some people.
Title: Re: antiHorn by Wafamde
Post by: rijads on Jan 9, 2012, 13:41:39
Glad you asked. We need one script that collects data of players playing on our servers, all their positions for every map, giving them points, and reseting those points, you need to connect it with mysql so we can see points in realtime on our website, it also should reset itself every month, and announce top 10 players of the month, take as much time as you need, even a week if you must.

No seriously you do that if you know scripting lua enough, and we will think of something good in return.
Title: Re: antiHorn by Wafamde
Post by: dark.Sector on Jan 9, 2012, 13:52:56
No seriously you do that if you know scripting lua enough, and we will think of something good in return.

i know some hot hookers
Title: Re: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 14:10:41
Glad you asked. We need one script that collects data of players playing on our servers, all their positions for every map, giving them points, and reseting those points, you need to connect it with mysql so we can see points in realtime on our website, it also should reset itself every month, and announce top 10 players of the month, take as much time as you need, even a week if you must.

No seriously you do that if you know scripting lua enough, and we will think of something good in return.

Try writing a very detailed description of what you need and I will see what I can do.
What you are asking for should be fairly easy for me to create.
Only problem I got is that it's mysql. Never really worked with mysql for MTA/Lua. But it shouldnt be a problem.. I like a challenge ;-)
Don't have the time to do anything today.. Social plans.. But I will try testing a few things tomorrow so I can write a system for you guys.
Do you want it to be a seperate resource or should it work with the race resource? ( Detailed description please )

You can also see some of my work here: http://www.youtube.com/user/SeverinDK (http://www.youtube.com/user/SeverinDK)
Just so you know who I am and what I can do :-)

If you can't find me any hookers for me, you don't have to think about a reward ;-)
All I ask is that you allow me to place my name on the resource. Where it's visual ingame and on the website, just like the theme of this website says "DarkBreak by DzinerStudio"
Title: Re: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 14:13:19
... Please delete this :P Accidental post.
Title: Re: antiHorn by Wafamde
Post by: rijads on Jan 9, 2012, 14:44:13
Whoa ok sure, you can say you created your script when people press F9, and we will post that on website where those scores are shown. I ll have to talk with tomo and mdbelen on ts before you start anything.
Title: Re: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 15:35:44
Whoa ok sure, you can say you created your script when people press F9, and we will post that on website where those scores are shown. I ll have to talk with tomo and mdbelen on ts before you start anything.

Okay. I will keep an eye on the topic.
Title: Re: antiHorn by Wafamde
Post by: Potzo on Jan 9, 2012, 16:36:55
Thank you for coming here and presenting us your work
Don't listen to rijad (lowbeat), hes hyperactive because of sugar and beans all the time ;)

I see you do alot of scripting based on your yt channel, we definately need extra help!
If you're interested go check this topic: http://ownageowls.com/forum/development/new-script-checklist/ (http://ownageowls.com/forum/development/new-script-checklist/)
It's kinda outdated, but keeps getting new replies with ideas (theres some more stuff later on, not just first post)
We also need to organise all GUI text/windows ingame and help sections.

We have something with stats done already (data is in mysql db): http://ownageowls.com/general (http://ownageowls.com/general)
Its slowly in progress by Mdbelen
Title: Re: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 16:53:01
Thank you for coming here and presenting us your work
Don't listen to rijad (lowbeat), hes hyperactive because of sugar and beans all the time ;)

I see you do alot of scripting based on your yt channel, we definately need extra help!
If you're interested go check this topic: http://ownageowls.com/forum/development/new-script-checklist/ (http://ownageowls.com/forum/development/new-script-checklist/)
It's kinda outdated, but keeps getting new replies with ideas (theres some more stuff later on, not just first post)
We also need to organise all GUI text/windows ingame and help sections.

We have something with stats done already (data is in mysql db): http://ownageowls.com/general (http://ownageowls.com/general)
Its slowly in progress by Mdbelen

Okay. I will let Mdbelen work with the stats system so none of his work gets ruined ;-)

Where do you want me to post/upload the resources? Doing some of the small resources on the checklist.

Just made a pretty decent anti-afk system for you guys, that blows up the player after 30 seconds of afk/idle time.
The timelimit can of course be changed in the script.
http://www.2shared.com/file/RfKLKFX4/antiAFK.html (http://www.2shared.com/file/RfKLKFX4/antiAFK.html)
Title: Re: antiHorn by Wafamde
Post by: Wafamde on Jan 9, 2012, 16:56:24
Omfg.. I keep pressing quote instead of modify post -.-
Title: Re: antiHorn by Wafamde
Post by: Mdbelen on Jan 9, 2012, 18:48:26
Ok thx for posting this. I checked your scripts and it seems that you are not one of these nabs saying "i can script" but actually... write assy buggy shitscripts lol, that's a good thing :P
About the anti-horn script: I think we won't use that as I wouldn't like to kick players for horning 10 sec (I guess sometimes I horn 10 sec too!). Without a warning and additionally those fags horning 10* 9 sec won't be kicked^^
As a little suggestion: You should be able to completely resign setElementData, by using isTimer(). If not, then at least set synchronize to false.

About the afk-blower: We already have one ;)

About the stats script: One of the reasons that I am so slow is that i don't know which events to use best as this is somewhat complicated with race gamemode (e.g. getAlivePlayers is wrong and so on..) So maybe you could help me with that a bit. Maybe just write the functions for detecting a dd-win, race/dm-toptime and I will care for the storage?
Title: Re: antiHorn by Wafamde
Post by: Mattyboe on Jan 10, 2012, 16:33:40
Solution if you don't like horns...mta volume to 0 :)