Raised This Month: $59 Target: $400
 14% 

AMX Warn 1.71


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Johnny got his gun (102)
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-18-2004 , 02:10   AMX Warn 1.71
Reply With Quote #1

Warn players when they are doing something wrong.

Defines:
#define SQLON (default 0; 0|1) - Set whether or not to use SQL (default is use file)

Commands:
amx_warn <username>
amx_unwarn <username>
warn <username>

The warns have five levels of warning. Warning punishments can be set by cvar. Warnings are punctuated with a screen flash which can be turned on or off or changed colors.

amx_unwarn brings the user's warning level back to 0.

warn is can by used by players and is somewhat like vote kick, but any player can use it. If successful the player's warn level is increased.

Cvars:

amx_savewarns (default 1; 1|0) - Set whether or not to save warnings.

Turn on/off and change the color of the flash when a player is simple warned. 0 = off, 1 = red, 2 = white, 3 = random color.
amx_warn_flash(default 1)

These control the punishment for each level. 0 = message, 1 = slap, 2 = slay, 3 = kick, 4 = temp ban, 5 = perma ban.
amx_warn_lvl1(default 0)
amx_warn_lvl2(default 1)
amx_warn_lvl3(default 2)
amx_warn_lvl4(default 3)
amx_warn_lvl5(default 4)

These control the slap damage for each level(if slap is the punishment set for that level):
amx_slap_lvl1dmg(all default to 5)
amx_slap_lvl2dmg
amx_slap_lvl3dmg
amx_slap_lvl4dmg
amx_slap_lvl5dmg

These control the amount of time(in minutes) for the temp ban on each level(if temp ban is set as the punishment for that level):
amx_tempban_lvl1time(all default to 5)
amx_tempban_lvl2time
amx_tempban_lvl3time
amx_tempban_lvl4time
amx_tempban_lvl5time

These control player warnings:
amx_playerwarn_allow(default 1)
amx_playerwarn_ratio(float,default 0.5)
Attached Files
File Type: sma Get Plugin or Get Source (amx_warn.sma - 6345 views - 18.7 KB)
__________________
twistedeuphoria is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 09-18-2004 , 07:20  
Reply With Quote #2

Code:
return PLUGIN_CONTINUE

Not needed in plugin_init().
Johnny got his gun is offline
kalel
Senior Member
Join Date: Aug 2004
Old 09-18-2004 , 08:17  
Reply With Quote #3

if I read the concept its supose to show the warning when they connect to the server agine? it dosn't do this didn't see the get_warning command
kalel is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-18-2004 , 09:53  
Reply With Quote #4

It is like an alternative to slaying or slapping. You warn someone. Little useless without its attachment to punsih on warnings, but eh.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-18-2004 , 11:20  
Reply With Quote #5

@JGHG:thanks
@Kalel: forgot to remove that becasue its not working....gotta work on that
@Twilight: it has no punishments by request....I could add a cvar and some such if you would like
__________________
twistedeuphoria is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-18-2004 , 11:40  
Reply With Quote #6

Quote:
Originally Posted by twistedeuphoria
@JGHG:thanks
@Kalel: forgot to remove that becasue its not working....gotta work on that
@Twilight: it has no punishments by request....I could add a cvar and some such if you would like
Well, the origina, admin_warn for AM did exactly like this did, but also had punishments. The POINT of warn was to punish people via warns that increase on each warning.

Thats what I would like, on a cvar.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-18-2004 , 12:40  
Reply With Quote #7

The point of this is to warn once and if you warn again it deletes the old one...I would put punishments based on priority. I could add another command though like amx_swarn to do something like that. I'll get a new version out soon with some of the additions.
__________________
twistedeuphoria is offline
SirTiger
Member
Join Date: Mar 2004
Old 09-18-2004 , 15:25  
Reply With Quote #8

Add a red screen flash to to it to give it more impact.
SirTiger is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 09-19-2004 , 01:23  
Reply With Quote #9

Alright, I added the swarns(info edited into first post).
@SirTiger: Two things:
1)I hope the plugin will alert them enough.
2)If it doesn't would you educate me on the matter of making the user's screen flash red?
__________________
twistedeuphoria is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-19-2004 , 01:25  
Reply With Quote #10

Using messages of course. Good ol SDK. I'll point you in the direction in five ticks.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
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 15:46.


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