Raised This Month: $51 Target: $400
 12% 

Server Suggestions [ 0.1 ]


Post New Thread Reply   
 
Thread Tools Display Modes
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-24-2009 , 19:31   Re: Server Suggestions [ 0.1 ]
Reply With Quote #11

GJ... i think if you add this:

Quote:
And emm... if i use the menu and select the option 1 for example... and i don't write /plugin in that moment... then in some minuts i write /plugin with the suggestion... i think should not work... but in this plugin work (if i am not wrong)... for that i give you a suggestion for this plugin...

When you select for example the option 1.... the plugin set you the messagemode, so you can write the suggestion, instead of using another command like /plugin...
The plugin will be complete at all.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 09-24-2009 , 19:33   Re: Server Suggestions [ 0.1 ]
Reply With Quote #12

Quote:
Originally Posted by Alucard^ View Post
GJ... i think if you add this:

...

The plugin will be complete at all.
Well, I would certainly add that but I have experience with messagemode. I'd be taking a shot in the dark, I don't know how to do it.
3Di is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-24-2009 , 20:03   Re: Server Suggestions [ 0.1 ]
Reply With Quote #13

Why is "HandleTheLogging" called (Lines 62 and 71) in your menu handling function? I don't think it will do anything also, it's for handling text messages.
__________________
fysiks is online now
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 09-25-2009 , 09:25   Re: Server Suggestions [ 0.1 ]
Reply With Quote #14

Quote:
Originally Posted by fysiks View Post
Why is "HandleTheLogging" called (Lines 62 and 71) in your menu handling function? I don't think it will do anything also, it's for handling text messages.
I meant to add it inside the switch( ) statement instead of the cases 1 and 2, but forgot. I will fix this issue later in the day, thank you for pointing it out.
3Di is offline
bigbud
Member
Join Date: Jan 2008
Old 09-25-2009 , 11:31   Re: Server Suggestions [ 0.1 ]
Reply With Quote #15

nice Idea!

here one Messagemode-Way

PHP Code:
#include <amxmodx>
//#include <amxmisc> don't needed
 
#define VERSION "0.1"
 
new bool:g_ssAmxxSuggestion[33]; // store Players the Suggest-Topic, ture = Plugin & false = SERVER
new ssTogglessAdvertisessFilePluginssFileServerShowMenu;
 
public 
plugin_init( )
{
 
register_plugin"Server Suggestions"VERSION"3Di" );
 
 
register_clcmd"say /suggest""CmdSuggest" );
 
register_clcmd"say_team /suggest""CmdSuggest" );
 
 
register_clcmd"Your_Suggest""SuggestHandle"_"" ); // The Suggest client cmd
 
 
ssToggle register_cvar"amx_ss_enable""1" );
 
ssAdvertise register_cvar"amx_ss_advertise""1" );
 
ssFilePlugin register_cvar"ss_filename_plugin""Suggest_Plugins" );
 
ssFileServer register_cvar"ss_filename_server""Suggest_Servers" );
 
 
ShowMenu menu_create"\dServer Suggestions^n\rChoose your suggestion topic:""HandleMenu" );
 
}
public 
CmdSuggestid )
{
 if ( !
get_pcvar_numssToggle ) )
  return 
PLUGIN_HANDLED;
 
 
menu_additemShowMenu"\wPlugin Suggestion""1");
 
menu_additemShowMenu"\wServer Suggestion""2");
 
 
menu_setpropShowMenuMPROP_EXITMEXIT_ALL );
 
 
menu_displayidShowMenu);
 
 return 
PLUGIN_HANDLED;
}
public 
HandleMenuidShowMenuItem )
{
 if ( 
Item == MENU_EXIT )
 {
  
menu_destroyShowMenu );
 
  return 
PLUGIN_HANDLED;
 }
 
 new 
ReadData], ClientName64 ];
 
 new 
MenuAccessCallBack;
 
menu_item_getinfoShowMenuItemMenuAccessReadData5ClientName63CallBack );
 
 new 
HandleKey str_to_numReadData );
 
 switch( 
HandleKey )
 {
  case 
1:
  {
   
g_ssAmxxSuggestion[id] = true// set clients Suggest-Topic to PLUING
   
client_cmd(id"messagemode Your_Suggest"); // exec the SuggestCMD with messagemode on the client
 
   
client_printidprint_chat"[SS] start typing your suggestion." );
   
//client_print( id, print_chat, "[SS] Example: /plugin I want a plugin where we can fly." );
 
  
}
 
  case 
2:
  {
   
g_ssAmxxSuggestion[id] = false// set clients Suggest-Topic to SERVER
   
client_cmd(id"messagemode Your_Suggest"); // exec the SuggestCMD with messagemode on the client
 
   
client_printidprint_chat"[SS] start typing your suggestion." );
  
// client_print( id, print_chat, "[SS] Example: /server Change the bomb timer to 50 seconds." );
  
}
 }
 
 
menu_destroyShowMenu );
 return 
PLUGIN_HANDLED;
}
public 
SuggestHandleid )
{
 new 
ReadText128 ];
 
read_argsReadText127 );
 
 new 
LineRemove], LogText123 ], ClientName16 ], MapName16 ], ReadString195 ];
 
strbreakReadTextLineRemove4LogText122 );
 
 
get_user_nameidClientName15 );
 
get_mapnameMapName15 );
 
 new 
TheTime], TheDate11 ], PluginFile21 ], FileName17 ];
 
get_time"%B.%d.%Y"TheDate10 );
 
get_time"%X %p"TheTime);
 
 if ( 
g_ssAmxxSuggestion[id] )
 {  
  
get_pcvar_stringssFilePluginFileName16 );
 
  
formatexPluginFile20"%s.txt"FileName );
  
formatexReadString150"[DATE] %s | [TIME] %s | [MAP] %s | [NAME] %s: ^n* %s ^n^n"TheDateTheTimeMapNameClientNameLogText );
 
  
write_filePluginFileReadString );
  
client_printid,  print_chat"[SS] Plugin Suggestion Sent: (File: %s)"PluginFile );
 }
 
 else
 {  
  
get_pcvar_stringssFileServerFileName16 );
 
  
formatexPluginFile20"%s.txt"FileName );
  
formatexReadString150"[DATE] %s | [TIME] %s | [MAP] %s | [NAME] %s: ^n* %s ^n^n"TheDateTheTimeMapNameClientNameLogText );
 
  
write_filePluginFileReadString );
  
client_printid,  print_chat"[SS] Server Suggestion Sent: (File: %s)"ServerFile );
 }
}
public 
client_putinserverid )
{
 if ( !
get_pcvar_numssToggle ) && !get_pcvar_numssAdvertise ) )
  return 
PLUGIN_HANDLED;
 
 
set_taskrandom_float15.030.0 ), "AdvertiseCommands"id );
 
 return 
PLUGIN_HANDLED;
}
public 
AdvertiseCommandsid )
{
 
client_printidprint_chat"[SS] Type /suggest to send suggestions about the server to the owner!" );
 
 return;

__________________

Last edited by bigbud; 09-25-2009 at 11:46. Reason: add some comments..
bigbud is offline
mattisbogus
Senior Member
Join Date: Jun 2009
Location: North Carolina, USA
Old 09-25-2009 , 23:38   Re: Server Suggestions [ 0.1 ]
Reply With Quote #16

Great idea for a plugin. Haven't used it yet but planning to once you fix the minor problems. (just to lazy to re-DL and add to server)

Thanks for this.
mattisbogus is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-21-2009 , 11:41   Re: Server Suggestions [ 0.1 ]
Reply With Quote #17

There are major errors in this that prevent it from being approved. Here are some of them:

Players can flood this very easily and it is hard to detect until the server owner opens the file.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approval pending on changes.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-27-2009 , 17:14   Re: Server Suggestions [ 0.1 ]
Reply With Quote #18

Update ?
KadiR is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-17-2009 , 14:22   Re: Server Suggestions [ 0.1 ]
Reply With Quote #19

Plugin still not updated from Hawk's last post.

Unapproved until errors are fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 19:55.


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