Raised This Month: $66 Target: $400
 16% 

[LJR] Long Jump Records


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Statistical        Approver:   v3x (159)
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-24-2008 , 09:51   [LJR] Long Jump Records
Reply With Quote #1

LongJump Records!


Notes:

This plugin was mainly made by X-olent, It was only my idea
Also thanks to atomen for his green text code


Description:
When a player connects to your server, a menu is displayed showing "Longjump", "countjump" or "bhop". If the player selects "1" (longjump) the longjump record menu will be displayed. The player then navigates through the next menu to add 1 unit, minus 1 unit, and then confirms their longjump record. This is then saved to a .txt file within cstrike/addons/amxmodx/configs/ljcj_records.txt. If the player chooses "2" or "3" (countjump or bhop) the same menu will be displayed, however it will update the players countjump or bhop record, rather than longjump record.


Client commands:
/updatemyrec - Shows the LJ/CJ menu to the player
/myrecord - Prints the players record to chat
/allrecords - Prints all current saved records to the players console


Admin commands:
If an admin thinks a player is not telling the truth about their LJ/CJ record, they can use these console commands to remove a players records:
ljr_removeljuser - Removes a players longjump record
ljr_removecjuser - Removes a players countjump record
ljr_removebjuser - Removes a players bunnyjump record


Modules Required:
Code:
#include <amxmisc>
#include <amxmodx>
#include <fakemeta>
Other:
Please note that this plugin requires fakemeta
If your server console shows a message like:
Code:
 Load fails: Plugin uses an unknown function (name "fakemeta") - check your modules.ini.
This means that you have not enabled fakemeta on your server
Go to cstrike/addons/amxmodx/configs/modules.ini and remove the ";" from in front of fakemeta
If there is no line statsing "fakemeta", then write it in

Updates:
v1.0

Public release

v1.1
Added the green [LJR] tag
Added lj/cj protection to stop people have better than legally recorded jumps

v1.2
Plugin now supports Bhop LJs
Added a cvar so its seen on game-monitor
Added a ljr_nubdetector to use legal records or not
Updated max CJ record (FoF's 269)
Attached Files
File Type: sma Get Plugin or Get Source (longjump_records.sma - 26667 views - 16.4 KB)
__________________

Last edited by minimiller; 10-01-2008 at 17:48. Reason: v_1.2
minimiller is offline
Send a message via MSN to minimiller
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-24-2008 , 09:57   Re: [LJR] Long Jump Records
Reply With Quote #2

Quote:
This plugin was mainly made by X-olent, It was only my idea
Are you able to maintain it ? and Is X-olent agree with that ?
__________________
Arkshine is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-24-2008 , 09:58   Re: [LJR] Long Jump Records
Reply With Quote #3

I am able to maintain it.
Im thinking of adding different coloured text and just generally improving it
Yes he did agree to this so no problems there
__________________
minimiller is offline
Send a message via MSN to minimiller
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-24-2008 , 10:04   Re: [LJR] Long Jump Records
Reply With Quote #4

Ok.

I did not too much to say since it's fairly enough well-coded, so just one suggestion ; maybe should you use the ML.
__________________
Arkshine is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-24-2008 , 10:08   Re: [LJR] Long Jump Records
Reply With Quote #5

By ML, i guess you mean multilingual
If any1 wants to help translate this, plz PM me or contact me in some way
Thanks
__________________
minimiller is offline
Send a message via MSN to minimiller
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-24-2008 , 10:31   Re: [LJR] Long Jump Records
Reply With Quote #6

There is forum for that : http://forums.alliedmods.net/forumdisplay.php?f=25
__________________
Arkshine is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-24-2008 , 10:44   Re: [LJR] Long Jump Records
Reply With Quote #7

Wont players choose the highest possible record to "look cool"?
__________________
hleV is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-24-2008 , 10:49   Re: [LJR] Long Jump Records
Reply With Quote #8

Ive been testing this on my 24/7 kz_longjumps2 server and every1 seems to be playing nice and entering their proper records
But if any1 does put summink like 270LJ, we added this command for admins:
ljr_removeljuser <name>

Which removes their lj record
Also the same with ljr_removecjuser
__________________
minimiller is offline
Send a message via MSN to minimiller
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 07-24-2008 , 11:35   Re: [LJR] Long Jump Records
Reply With Quote #9

Why dont you fix something like this?
PHP Code:
  case '3':
  {
   if(
g_ljcount[id] >= 260){
      
client_print(idprint_chat"[LJR] You specified a impossible jump length");
      return 
PLUGIN_HANDLED;
   }
 
   [...]
  } 
__________________
atomen is offline
Send a message via MSN to atomen
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-24-2008 , 12:07   Re: [LJR] Long Jump Records
Reply With Quote #10

Ahhh
An "anti-cheat" kinda thing
I like it
Ill implement it into teh next version
Ill also try to get some color to the [LJR] tag
__________________
minimiller is offline
Send a message via MSN to minimiller
Old 07-24-2008, 12:19
Jon
This message has been deleted by Jon. Reason: o rly
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:43.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode