AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Linux//Windows Plugin bad load error (https://forums.alliedmods.net/showthread.php?t=28481)

BloodyNuker 05-15-2006 17:49

Linux//Windows Plugin bad load error
 
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 :cry:

Plz help!!

SubStream 05-15-2006 20:02

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.

BloodyNuker 05-16-2006 10:32

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

Basic-Master 05-16-2006 12:13

register your plugin before you register everything else

BloodyNuker 05-16-2006 12:23

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


But... :cry: 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 :twisted:


All times are GMT -4. The time now is 16:23.

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