Author Topic: Feature Requests  (Read 10583 times)

0 Members and 1 Guest are viewing this topic.

Offline LoveFist

  • [SiK] Member
  • Nooblit
  • ***
  • Posts: 19
  • Yay or Nay +2/-0
    • View Profile
Re: Feature Requests
« Reply #30 on: January 16, 2012, 02:08:03 PM »
I can suggest you my little anti votespam script. It will be more accurate.
Asphalt bandit

Offline DemonSeed

  • Facts don't care about your feelings.
  • Administrator
  • A God
  • *****
  • Posts: 2285
  • Yay or Nay +4382/-4074
  • Don't try to force your PC dick down my throat.
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #31 on: January 16, 2012, 02:53:16 PM »
Doesn't seem to work :S
Created by 1thwonder

Offline Clark_Kent

  • Nooblit
  • *
  • Posts: 126
  • Yay or Nay +5/-0
    • View Profile
Re: Feature Requests
« Reply #32 on: January 16, 2012, 03:15:54 PM »
Doesn't seem to work :S
I may know why, the root should be changed to getRootElement() ?
test to add this line on top:

root = getRootElement()

EDIT: And in Meta.xml there should be: <script src="anti-votespam.lua" type="server" />   not    <script src="anti-votespam.lua"/>
« Last Edit: January 16, 2012, 03:29:04 PM by Clark_Kent »

Offline DemonSeed

  • Facts don't care about your feelings.
  • Administrator
  • A God
  • *****
  • Posts: 2285
  • Yay or Nay +4382/-4074
  • Don't try to force your PC dick down my throat.
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #33 on: January 16, 2012, 05:07:15 PM »
Still nothing, no errors either.
Created by 1thwonder

Offline LoveFist

  • [SiK] Member
  • Nooblit
  • ***
  • Posts: 19
  • Yay or Nay +2/-0
    • View Profile
Re: Feature Requests
« Reply #34 on: January 17, 2012, 11:02:16 AM »
If script detect votespam, message will be shown only for spammer. Thats why you think its doesn't work. To check how it works you may change
Code: [Select]
outputChatBox(getPlayerName(source) .. ": #E0D0B0" .. message, source, g_Red, g_Green, g_Blue, true)to
Code: [Select]
outputChatBox(getPlayerName(source) .. " (spam): #E0D0B0" .. message, source, g_Red, g_Green, g_Blue, true)
Some examples:
Will be detected as spam
Quote
2
1111
55555 pls
1!
Will not be detected:
Quote
6454593
one
1 please


ps: root is predefined variable ;)
Asphalt bandit

Offline DemonSeed

  • Facts don't care about your feelings.
  • Administrator
  • A God
  • *****
  • Posts: 2285
  • Yay or Nay +4382/-4074
  • Don't try to force your PC dick down my throat.
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #35 on: January 17, 2012, 11:52:12 AM »
I tested it out myself, started votes and did, 1-8 or 4444444 or whatever.
Created by 1thwonder

Offline Demiveil

  • Administrator
  • Nub
  • *****
  • Posts: 257
  • Yay or Nay +7/-2
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #36 on: January 17, 2012, 10:29:11 PM »
I can take a quick look at that votespam script tonight if you like. Also should have a script done tonight which will automatically reset the points at the start of each month, and will also save each months results and host them similar to the top players so that they can be displayed on the home page.

Post Merge: January 19, 2012, 07:43:34 AM
Right well sorry its taken me so long, been busier than I thought, and I'm really gonna regret staying up so late to do this now, but thats ok.....works still a few hours away lol.

Anyway I have finished what I'm calling the points manager. At the end of each month (within two minutes after midnight of the first day of each month) this script will automatically save the top 3 of the preceding month and then reset the points entirely. This script also hosts a small html page similar to the Top Players there on the left, which lists the top 3 of the last month along with their points. This list will also update automatically at months end.

This will hopefully make the end of each championship month a lot more exciting due to the more solid end date, plus it will mean no one will have to remember to jump onto the server and reset the points manually which is nice :)

I've tested it on my own server here, and will pop it onto the SiK server tomorrow :)
« Last Edit: January 19, 2012, 07:43:34 AM by Demiveil »

Offline Sexmaniac

  • [SiK] Member
  • A God
  • ***
  • Posts: 2408
  • Yay or Nay +1024/-4
    • View Profile
    • SiK - Speed is king - MTA Racing community!
Re: Feature Requests
« Reply #37 on: January 19, 2012, 09:02:09 AM »
Sounds nice Demi, thanks!

Offline RaO

  • Nub
  • **
  • Posts: 485
  • Yay or Nay +5/-0
    • View Profile
    • RaO 's Mixes
Re: Feature Requests
« Reply #38 on: January 19, 2012, 12:36:17 PM »
wow very cool.

Offline Clark_Kent

  • Nooblit
  • *
  • Posts: 126
  • Yay or Nay +5/-0
    • View Profile
Re: Feature Requests
« Reply #39 on: January 20, 2012, 08:39:56 AM »
Very nice Demi :), I have an idea of adding the strike script to your new monthly points script so it resets too every month and the best streak also shows beside the points. Can you do that when you have time? Sex might not bee so happy that his 40 streak will be gone tho.

Offline Sexmaniac

  • [SiK] Member
  • A God
  • ***
  • Posts: 2408
  • Yay or Nay +1024/-4
    • View Profile
    • SiK - Speed is king - MTA Racing community!
Re: Feature Requests
« Reply #40 on: January 20, 2012, 11:36:19 AM »
hehe, np Clark!  :D

Offline Demiveil

  • Administrator
  • Nub
  • *****
  • Posts: 257
  • Yay or Nay +7/-2
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #41 on: January 20, 2012, 08:13:54 PM »
Yeah that certainly sounds like a good idea....and reasonably easy. Though have you modified my streak script to store it in the database? I feel like I remember reading that?

Offline Clark_Kent

  • Nooblit
  • *
  • Posts: 126
  • Yay or Nay +5/-0
    • View Profile
Re: Feature Requests
« Reply #42 on: January 21, 2012, 04:18:50 AM »
Its modified to store the best streak in a settings.xml file in the resource folder, your original code is commented out @ the bottom, change to the database instead as the points are there.

Offline Demiveil

  • Administrator
  • Nub
  • *****
  • Posts: 257
  • Yay or Nay +7/-2
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #43 on: January 24, 2012, 05:54:23 AM »
Alright, modified the script to now display last months winners and the current Top Streak.

The Top Streak is updated every 2 minutes, and is automatically reset at the end of the month.

Hope you all like it.

Incidentally 79 is truly a fantastic effort!
However I will be looking to change the streak script soon to take into consideration the number of players beaten during the streak as I think this more accurately shows just how much your kick'n ass!

Offline DemonSeed

  • Facts don't care about your feelings.
  • Administrator
  • A God
  • *****
  • Posts: 2285
  • Yay or Nay +4382/-4074
  • Don't try to force your PC dick down my throat.
    • View Profile
    • Speed is King
Re: Feature Requests
« Reply #44 on: January 24, 2012, 07:01:14 PM »
Is the 79 with other players????

Also, did anyone get that anti-votespam script to work?
« Last Edit: January 24, 2012, 07:04:47 PM by DemonSeed »
Created by 1thwonder