Raised This Month: $51 Target: $400
 12% 

SCXPM Exploit Restrictor


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Sven Coop        Category:   Server Management        Approver:   Hawk552 (427)
ts2do
Senior Member
Join Date: Mar 2004
Old 08-01-2007 , 13:57   SCXPM Exploit Restrictor
Reply With Quote #1

This plugin is powered by the KeyValue Event Manager and needs it installed in order to run.

This plugin is intended to decrease the effects of map-based scoring (game_score entity) by clamping the points value to a specified maximum value.

A common example is the map maker's secret in secrethunt2_r. This hidden button, when used by a player, gives them 10,000 points, which becomes many levels quickly.
Attached Files
File Type: sma Get Plugin or Get Source (scxpmrestrict.sma - 3469 views - 513 Bytes)

Last edited by ts2do; 09-01-2007 at 18:26.
ts2do is offline
Send a message via AIM to ts2do
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-24-2007 , 17:11   Re: SCXPM Exploit Restrictor
Reply With Quote #2

what

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Simon10362
Junior Member
Join Date: Aug 2007
Location: Estonia
Old 08-26-2007 , 14:24   Re: SCXPM Exploit Restrictor
Reply With Quote #3

???????
__________________
WHO AM I??
Simon10362 is offline
Send a message via MSN to Simon10362
ts2do
Senior Member
Join Date: Mar 2004
Old 08-27-2007 , 08:05   Re: SCXPM Exploit Restrictor
Reply With Quote #4

??
__________________
ts2do is offline
Send a message via AIM to ts2do
warlock
Senior Member
Join Date: Jan 2005
Old 08-27-2007 , 13:31   Re: SCXPM Exploit Restrictor
Reply With Quote #5

huh?? say what
__________________
Kind regards,
warlock
warlock is offline
ABC3Q
Junior Member
Join Date: Mar 2007
Old 08-28-2007 , 02:06   Re: SCXPM Exploit Restrictor
Reply With Quote #6

Did anyone read the link other then me?
__________________
| Account has been abandoned |
ABC3Q is offline
AdamR
Senior Member
Join Date: Dec 2006
Location: Cardiff, South Wales
Old 09-19-2007 , 13:36   Re: SCXPM Exploit Restrictor
Reply With Quote #7

What an excellent plugin idea. Thank you very much for this.

I recommend modifying it to allow administrators to define the maximum number of points though:
Code:
#include <amxmodx>
#include <kve>
#include <fakemeta>
#define MAKE_STRING(%1) "%1"
#define STR_MAX_POINTS MAKE_STRING(MAX_POINTS)

public plugin_precache()
{
	register_keyvalue("game_score", "points", "handle_game_score_points")
}
public plugin_init()
{
	register_plugin("SCXPM Exploit Restrictor", "1.0", "ts2do")
	register_cvar("xp_maxpoints", "1")
}
public handle_game_score_points(szValue[], entid, kvdid)
{
	new maxPoints = get_cvar_num("xp_maxpoints")
	if(str_to_num(szValue) > maxPoints)
	{
		set_kvd(kvdid, KV_Value, STR_MAX_POINTS)
	}
}
^ although that fails, because of the definitions.

Also, this is Pawn. You don't need ; at the end of a statement.

Ignore the first 4 replies. Those guys have no idea what this plugin is about.
__________________
Thanks,

Adam Reece - Sven Co-op team.

Last edited by AdamR; 09-19-2007 at 13:39.
AdamR is offline
Send a message via Skype™ to AdamR
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-19-2007 , 15:11   Re: SCXPM Exploit Restrictor
Reply With Quote #8

Oh, he explained it to me. I don't think he needs to be told to ignore us. Also, I don't think you understand that he's at a pretty good level - probably above you.

Approved, for now.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



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 16:34.


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