Raised This Month: $32 Target: $400
 8% 

SVC Stufftext - Fix?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pfomg
New Member
Join Date: Apr 2020
Old 04-08-2020 , 12:04   SVC Stufftext - Fix?
Reply With Quote #1

Hello ,I have this thing blocking some of my commands in a simon menu plugin.
I tried cl_filterstuffcmd 0 (which seemed to be a fix) but won't work.
Error i get returned :

[SVC_STUFFTEXT] Server tried to send invalid command: say /open
Is there a way to fix this?
pfomg is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 04-08-2020 , 14:14   Re: SVC Stufftext - Fix?
Reply With Quote #2

Quote:
Originally Posted by pfomg View Post
Hello ,I have this thing blocking some of my commands in a simon menu plugin.
I tried cl_filterstuffcmd 0 (which seemed to be a fix) but won't work.
Error i get returned :

[SVC_STUFFTEXT] Server tried to send invalid command: say /open
Is there a way to fix this?
Post the plugin you are having problem first
tarsisd2 is offline
pfomg
New Member
Join Date: Apr 2020
Old 04-08-2020 , 17:48   Re: SVC Stufftext - Fix?
Reply With Quote #3

PHP Code:
#include <amxmodx>

public plugin_init()
{
register_plugin("Menu""1.0""MrGaben");
register_clcmd("say /menu""ShowMenu"_"Brings Up Menu");
}

public 
ShowMenu(id)
{
new 
menu menu_create("Meniu Simon""MrGaben");

menu_additem(menu"Deschide celulele"""0); // case 0
menu_additem(menu"Ding!"""0); // case 1
menu_additem(menu"Meniu zile speciale """0); // case 2
menu_additem(menu"Meniu Free Day"""0); // case 3
menu_additem(menu"Box"""0); // case 4
menu_additem(menu"Meniu fotbal"""0); // case 5

menu_setprop(menuMPROP_EXITMEXIT_ALL);
menu_setprop(menuMPROP_PERPAGE6);
menu_setprop(menuMPROP_NOCOLORS1);

menu_display(idmenu0);

return 
PLUGIN_HANDLED;
}

public 
MrGaben(idmenuitem)
{
if(
item == MENU_EXIT)
{
menu_cancel(id);
return 
PLUGIN_HANDLED;
}

new 
command[6], name[64], accesscallback;

menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

switch(
item)
{
case 
0client_cmd(id"say /open" );
case 
1client_cmd(id"say /ding");
case 
2client_cmd(id"say /meniuzile");
case 
3client_cmd(id"say /fd");
case 
4client_cmd(id"say /box");
case 
5client_cmd(id"say /ball");
}

menu_destroy(menu);

return 
PLUGIN_HANDLED;

The plugin is made by RAW_192

Last edited by Bugsy; 04-08-2020 at 19:47.
pfomg is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2020 , 19:47   Re: SVC Stufftext - Fix?
Reply With Quote #4

Please use php tags when posting code:
__________________
Bugsy 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 14:13.


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