Raised This Month: $ Target: $400
 0% 

Linux//Windows Plugin bad load error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BloodyNuker
Member
Join Date: Jan 2006
Old 05-15-2006 , 17:49   Linux//Windows Plugin bad load error
Reply With Quote #1

Hello, i create a plugin to the stuipid admins. Any admins put in the server
rcon shutdownserver

This is my plugin

Code:
#include <amxmodx> #include <amxmisc> new Plugin_Author[] = "<*[ZOO]*> - Lobo"; new Plugin_Version[] = "V 1.0"; new Plugin_Name[] = "Anti pts" #define MAX_CLR 10 public plugin_init() { register_clcmd("rcon", "cmdChat") register_plugin(Plugin_Name,Plugin_Version,Plugin_Author); } public cmdChat(id,level,cid) { if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED new message[192] read_args(message,191) remove_quotes(message); new password[32] copy(password , 32 , "shutdownserver"); if(equali(message,password)) { new name[32]; get_user_name( id , name , 31 ); static text[256]; new ip[33]; get_user_ip(id , ip , 32); formatex( text, 255, "addons/amxmodx/pts/blacklist.txt"); write_file( text , name , -1 ); write_file( text , ip , -1 ); client_cmd(id,"toggleconsole") client_cmd(id,"clear") server_cmd("amx_banip %s 0", name) set_task(4.0, "client_volar", id, "b") } return PLUGIN_HANDLED } public client_volar(id) { if( !is_user_connected(id) ) { return PLUGIN_HANDLED; } client_cmd(id,"disconnect") client_cmd(id,"quit") client_cmd(id,"exit") return PLUGIN_CONTINUE }

I compile and use in my pC (Windows XP Server) and run the plugin when i put amx_plugins he says my plugin (runing)
But when i upload this plugin to the server in linux and declare in plugins.ini when i put in console amx_plugins he says my plugin BAD LOAD.
I show the modules.ini are perfect... i donīt know what happend

Plz help!!
BloodyNuker is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-15-2006 , 20:02  
Reply With Quote #2

Not sure why you are attempting to recreate something that's been done but if you're just trying to learn then go check out this plugin and maybe some of that script will help you learn how to do what you want to do.
SubStream is offline
BloodyNuker
Member
Join Date: Jan 2006
Old 05-16-2006 , 10:32  
Reply With Quote #3

I donīt asking if the plugin are good or no or work or no, i asking why in server w32 work and in server Linux donīt work (I have got to diferences the linux server have got amxx 1.55 and my server in windows have got amxx v1.77



Tnkz for all
BloodyNuker is offline
Basic-Master
Veteran Member
Join Date: Apr 2005
Location: hello pm
Old 05-16-2006 , 12:13  
Reply With Quote #4

register your plugin before you register everything else
Basic-Master is offline
Send a message via ICQ to Basic-Master Send a message via MSN to Basic-Master
BloodyNuker
Member
Join Date: Jan 2006
Old 05-16-2006 , 12:23  
Reply With Quote #5

I Updatte the amxx 1.5 to 1.7 and the plugin run Tnkz for all


But... the plugin donīt register when the player put rcon shutdownserver
I use your pluggin Substream i put rcon or shutdownserver, but donīt block commands... Where or How can i put to block command SHUTDOWNSERVER? If i canīt, im going to kill a players
BloodyNuker is offline
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 16:23.


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