Raised This Month: $ Target: $400
 0% 

Fullupdate + Kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leaky
Junior Member
Join Date: Jan 2006
Old 03-14-2006 , 23:17   Fullupdate + Kick
Reply With Quote #1

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 
}
leaky is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-14-2006 , 23:30  
Reply With Quote #2

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

You do not need those since your not even using anything from it
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
leaky
Junior Member
Join Date: Jan 2006
Old 03-14-2006 , 23:35  
Reply With Quote #3

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
leaky is offline
Janzert
Senior Member
Join Date: Mar 2004
Old 03-14-2006 , 23:43  
Reply With Quote #4

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
__________________
Janzert is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-14-2006 , 23:45  
Reply With Quote #5

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
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
leaky
Junior Member
Join Date: Jan 2006
Old 03-14-2006 , 23:51  
Reply With Quote #6

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.
leaky is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-14-2006 , 23:58  
Reply With Quote #7

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
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
leaky
Junior Member
Join Date: Jan 2006
Old 03-15-2006 , 00:03  
Reply With Quote #8

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
leaky is offline
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 03-15-2006 , 00:30  
Reply With Quote #9

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 ;-).
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Raz
Senior Member
Join Date: Jan 2005
Old 04-21-2006 , 23:10  
Reply With Quote #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.
Raz is offline
Send a message via AIM to Raz
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 20:21.


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