Flag A Player
2 Attachment(s)
this plugin lets you attach a "flag" to a steam account, and you can:
- warn admins when a player who has been banned before has entered - execute commands on players when they connect, are putinserver, or every single round (need an example? amx_slay...) - execute commands normally used by amx_exec (i.e. name "Player") what are flags? - a flag attaches certain commands set to execute at a certain time on a steam account; the commands are called "flag commands" random stuff: - there are two files created in your configs directory: flagging.ini (which isn't created unless you add a flag in-game) and flagcmds.ini - this stores the stuff you use or whatever - you can make 150 flags and like 64 commands or something, if you want more change the defines in the plugin credits: i used PM's cvar rules plugin for inspiration and ideas, and he also answered some questions i had through pm. thanks PM! plugin idea: http://forums.alliedmods.net/showthread.php?t=10170 changelog: in the plugin cvars: Code:
amx_flagging - toggles the plugin amx_flagsmenu Code:
amx_flagsmenu Code:
amx_currentflags Code:
amx_flags "list" [flag # | player's name | steam id] Code:
amx_flagcmds "list" [cmd number | cmd name] Code:
// Presets are "commands" you put at the beginning of a registered flag command; read on for examples "a": called on client_connect "b": called on client_putinserver "c": called every time a player spawns you can use any or all of the events with a command (ex: "a", "cb", whatever) examples: Code:
amx_flags add "n!nja" -> adds a flag to "n!nja" with the command "default" - if you select a player name from the menu for adding a flag, even if he leaves the server while you're adding commands, it will have saved his name/steam id, so take your time; you still own him - you can add flags through the menu that are out of the server as well as without the menu - if you add/register a flag/command, you overwrite an existing version - you separate commands with semicolons (for flags) - you can put already registered commands inside another registered command (ex: register "default3" "default; default; default") - if you use commands when registering a command, it will go by that command's event, not individually by the others - i think it ignores whitespace when it searches for the commands, but.. you know, we'll see what happens - you can use any concmd/servercmd when registering commands, but keep in mind that if you want to execute something on a player, you have to use the preset command "execute" - whatever, be creative... for the server i test this plugin on i did this: Code:
amx_flagcmds reg "slayround" "amx_slay #[userid]" // edit 12/30/06 most recent notices: - if a player has amxx immunity, it will be useless to add a flag to his account, because when a flag tries to execute something on a player with immunity, it will delete it from the system (you don't have to tell this to your admins, though ;)) - in order to change your files (flagged.ini or flagcmds.ini) externally (i.e. outside of the game) you must take care so that the original file will not be restored over your overwritten one: Code:
1) change the map and tell any admins not to touch the flags or flag commands (depending on which file you're trying to modify) --- once again, if you have questions or bug reports, post here. the plugin has not changed, i've just come back for a short time to follow-up on it and give any support if needed. // 12/30/06 |
Nice, +karma
But what is the difference between the Ultimate Punishment by v3x? |
There's a little diffrence.
|
-edited-
|
sorry substream, i did forget to put up credit for the idea, but it wasn't your credit.
http://forums.alliedmods.net/showthread.php?t=10170 |
Quote:
|
-edited-
|
just so we're clear, i got the ideas from that link i posted, even the name "flag"; i had half of it already written when that guy started the more recent thread
unfortunately, neither of the two guys who posted on the original thread have been to the forums lately |
You should use either Vault, nVault, or Array to store the ids ;)
|
why
|
All times are GMT -4. The time now is 19:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.