AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AMX Warn 1.71 (https://forums.alliedmods.net/showthread.php?t=5963)

twistedeuphoria 09-18-2004 01:10

AMX Warn 1.71
 
1 Attachment(s)
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)

Johnny got his gun 09-18-2004 06:20

Code:
return PLUGIN_CONTINUE

Not needed in plugin_init().

kalel 09-18-2004 07:17

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

Twilight Suzuka 09-18-2004 08:53

It is like an alternative to slaying or slapping. You warn someone. Little useless without its attachment to punsih on warnings, but eh.

twistedeuphoria 09-18-2004 10:20

@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

Twilight Suzuka 09-18-2004 10:40

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.

twistedeuphoria 09-18-2004 11:40

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.

SirTiger 09-18-2004 14:25

Add a red screen flash to to it to give it more impact.

twistedeuphoria 09-19-2004 00:23

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?

Twilight Suzuka 09-19-2004 00:25

Using messages of course. Good ol SDK. I'll point you in the direction in five ticks.


All times are GMT -4. The time now is 08:06.

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