AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Vanished Command.... (https://forums.alliedmods.net/showthread.php?t=2536)

sanaell 06-07-2004 21:41

Vanished Command....
 
it s mine init ....
Code:
public plugin_init(){    register_plugin(STB_PLUGIN,STB_VERSION,STB_NAME)    register_cvar("stbvar","1")    register_clcmd("say /stbme","stb_me",0,msgs[0])    register_clcmd("say_team /stbme","stb_me",0,msgs[0])    register_clcmd("say /stball","stb_all",ADMIN_STB,msgs[1])    register_clcmd("say_team /stball","stb_all",ADMIN_STB,msgs[1])    register_concmd("stb_t","stb_force",ADMIN_STB,msgs[2])    register_concmd("stb_ct","stb_force",ADMIN_STB,msgs[3])    format(g_logFileName, 255, "addons/amxx/logs/stb.log");    if(file_exists(g_logFileName) == 1)     get_time("addons/amxx/logs/stb.log",g_logFileName,255)    else write_file(g_logFileName,"")    register_event("ResetHUD","reset_hud","b")    return PLUGIN_CONTINUE }


all are defined
Code:
#define ADMIN_STB ADMIN_RCON new STB_PLUGI........
etc....

amx_help.... no command stb_..... etc...
like the plugin isnt here

but Cvar is registered and plugin is running
someone have a clue ?

Peli 06-07-2004 21:45

Change :
Code:
public plugin_init(){    register_plugin(STB_PLUGIN,STB_VERSION,STB_NAME)
To :
Code:
public plugin_init(){    register_plugin("STB_PLUGIN","Version","sanaell")
Above change :
Code:

"Version"
To the version of your plugin.

sanaell 06-08-2004 03:07

Quote:

Originally Posted by Peli
Change :
Code:
public plugin_init(){    register_plugin(STB_PLUGIN,STB_VERSION,STB_NAME)
To :
Code:
public plugin_init(){    register_plugin("STB_PLUGIN","Version","sanaell")
Above change :
Code:

"Version"
To the version of your plugin.


That not that :)

when i type amx_plugcfg list
i see the plugin running
(with version ..... )

Johnny got his gun 06-08-2004 03:11

Make sure the client doing amx_help has ADMIN_STB access.

sanaell 06-08-2004 03:16

when i type amx_help

i have all command of amx, but none of that plugin

sanaell 06-08-2004 03:22

JUST BECAUSE STB_ME function aren t here !!!!!


now it s working

Johnny got his gun 06-08-2004 03:28

If you would've posted the whole code needed it would be easier to help.


All times are GMT -4. The time now is 14:36.

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