AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   My plugin is not working (https://forums.alliedmods.net/showthread.php?t=11926)

kasc 03-31-2005 12:09

My plugin is not working
 
Please tell me why this has a "Bad Load":
Code:
#include <amxmodx> #include <amxmisc> new PLUGIN[]="You Are Stupid" new AUTHOR[]="Kasc" new VERSION[]="1.00" public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)      register_clcmd("amx_urstupid","myfunction",AMX_HELP,"Declares that you think a specific person is stupid!")         } public myfunction(id) {      new arg[32];      read_argv(1,arg,31);      new player = cmd_target(id,arg);      if(!player) {           return PLUGIN_HANDLED;      }      new targetname[32], myname[32];      get_user_name(player,targetname,31);      get_user_name(id,myname,31);      client_print(0,print_chat,"* %s thinks that %s is stupid!",myname,targetname);      return PLUGIN_HANDLED; }

thanks :D

NiGHTFiRE 04-01-2005 21:08

haven't you already made a topic about this

v3x 04-01-2005 22:52

Code:
register_clcmd("amx_urstupid","myfunction",AMX_HELP,"Declares that you think a specific person is stupid!")
AMX_HELP isn't an access level, use something like the following:

Code:

ADMIN_SLAY
ADMIN_KICK
ADMIN_BAN
ADMIN_RCON

etc..

kasc 04-03-2005 08:38

I AM SORRY IF MY OTHER POST WAS NOT ANSWERED
I AM SORRY THAT I FORGOT TO PUT THE UPDATED VERSION POSTED!
THE F***ING AMX_HELP HAS BEEN CHANGED TO ADMIN_KICK
AND IT STILL DOES NOT WORK!!!!!

LOL i love anger :D


o yes and i forgot to ask, how do i make it so that any1 can use this command (by any1 i mean non-admins aswell) :roll:

v3x 04-03-2005 09:32

Code:
register_clcmd("amx_urstupid","myfunction",AMX_HELP,"Declares that you think a specific person is stupid!")
:arrow:
Code:
register_clcmd("amx_urstupid","myfunction",0,"Declares that you think a specific person is stupid!")


All times are GMT -4. The time now is 09:49.

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