AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fullupdate + Kick (https://forums.alliedmods.net/showthread.php?t=25493)

leaky 03-14-2006 23:17

Fullupdate + Kick
 
I took some code from a couple plugins and tried to make it kick anyone who uses fullupdate rather than just block it. I'm new to scripting so it might be a mess but the plugins compiles fine....it just doesn't load with the server.

Code:

/* AMX Mod X script.
*
*  fullupdate Blocker (fullupdate_blocker.sma)

*  This plugin should be installed above all plugins you want
*  the resetHUD event caused by the client command "fullupdate"
*
*/

#include <amxmodx>
#include <engine>
#include <cstrike>
#include <amxmisc>
#include <fun>
new bcount[33]
public plugin_init() {
    register_plugin("fullupdate Blocker","1.0","JTP10181 / Uzeal")
    register_clcmd("fullupdate","fullupdate")
}
public fullupdate(id) {
    new bname[33]
    get_user_name(id, bname, 32)
    client_print(0,print_chat,"%s Has attempted to use *fullupdate* and was kicked.  (%i/3)", bname, bcount[id])
    client_print(0,print_chat,"%s Has abused the command *fullupdate* and has been kicked",bname)
    server_cmd("amx_kick #%i", get_user_userid(id)) 
    return PLUGIN_HANDLED
}


teame06 03-14-2006 23:30

Code:
#include <engine> #include <cstrike> #include <fun>

You do not need those since your not even using anything from it

leaky 03-14-2006 23:35

Thanks but that still doesn't help with the plugin load. It still tells me
[AMXX] Plugin file open error (plugin "[email protected]")

Any help welcome

Janzert 03-14-2006 23:43

Just a little warning, when someone starts recording a demo the client issues a fullupdate command.

So if you get the plugin working and use it, you will end up kicking anyone that tries to record a demo.

After compiling you are using the resulting .amxx file, correct?

Janzert

teame06 03-14-2006 23:45

Quote:

[AMXX] Plugin file open error (plugin "[email protected]")
There 3 things happening.. You can't spell.. It wrong in plugins.ini or it wrong in your amxmodx\plugins ... Or it not even in the folder

leaky 03-14-2006 23:51

Quote:

Originally Posted by teame06
Quote:

[AMXX] Plugin file open error (plugin "[email protected]")
There 3 things happening.. You can't spell.. It wrong in plugins.ini or it wrong in your amxmodx\plugins ... Or it not even in the folder

Here's another 3 things...
I can spell. you have bad grammar, and you have no idea what you're talking about.

teame06 03-14-2006 23:58

I'm TELLING you that you don't have the plugin in amxmodx\plugins or IT SPELL WRONG in plugins.ini or IT SPELL WRONG in amxmodx\plugins.. File open error mean it not there, you SPELL IT WRONG

leaky 03-15-2006 00:03

Oh yeah? Here's another 3 things!!!!

You rule. I'm an idiot, and crap I didn't move the new compile into my directory. Apparently I moved an old one.

Thanks!!!!

Leaky

slmclarengt 03-15-2006 00:30

After reading all the posts here, I could do nothing but laugh. Sorry for this useless post but leaky's replay to teame's was priceless ;-).

Raz 04-21-2006 23:10

Hey did you ever get this working or not, cuz i got asses in my server doing it and it causes a server crash, i could really use it.


All times are GMT -4. The time now is 20:21.

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