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

Round Restart Chat Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xExperienced
Member
Join Date: Jun 2017
Location: USA
Old 07-20-2017 , 03:18   Round Restart Chat Message
Reply With Quote #1

When Admin gives round restart server should show that admin name..
Need small code for this function

I have made the code for chat message but dont know in which plugin i shud put..

Code:
new adname[32]
get_user_name(id, adname, 31)
client_print_color (id , print_team_red , "^03Admin ^04%s ^01has ^04restarted ^03the ^x04round. ^01The ^03game ^01will ^04restart ^01in ^041 Second.",adname)
Code maybe wrong Poor in pawn coding please correct if wrong

Where to put this code?
in admin.sma , plmenu , menufont , adminchat or pluginmenu ?

Last edited by xExperienced; 07-21-2017 at 07:31.
xExperienced is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-20-2017 , 20:55   Re: Where to put this code?
Reply With Quote #2

You put it in the function that is called when the admin issues the command. Most default AMX Mod X commands are in admincmd.sma.
__________________
fysiks is offline
xExperienced
Member
Join Date: Jun 2017
Location: USA
Old 07-21-2017 , 07:31   Re: Where to put this code?
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
You put it in the function that is called when the admin issues the command. Most default AMX Mod X commands are in admincmd.sma.
Couldn't find

Someone please guide...
xExperienced is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-21-2017 , 09:31   Re: Round Restart Chat Message
Reply With Quote #4

Well, what command do you use?
__________________
fysiks is offline
xExperienced
Member
Join Date: Jun 2017
Location: USA
Old 07-21-2017 , 10:54   Re: Round Restart Chat Message
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Well, what command do you use?
@fysiks I don't use any direct console command for round restart.

I just use amxmodmenu -> Server Commands -> Restart Round.


Last edited by xExperienced; 07-21-2017 at 11:02.
xExperienced is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-22-2017 , 00:32   Re: Round Restart Chat Message
Reply With Quote #6

It looks like that menu command is loaded dynamically from cmds.ini by cmdmenu.sma. Therefore, it won't be as simple as just inserting that code into the plugin.

It is certainly possible if someone is willing to take the time to modify a default AMX Mod X plugin (which is sometimes not recommended because you will lose your custom functionality the next time you update AMX Mod X).
__________________

Last edited by fysiks; 07-22-2017 at 00:33.
fysiks is offline
xExperienced
Member
Join Date: Jun 2017
Location: USA
Old 07-22-2017 , 05:16   Re: Round Restart Chat Message
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
It looks like that menu command is loaded dynamically from cmds.ini by cmdmenu.sma. Therefore, it won't be as simple as just inserting that code into the plugin.

It is certainly possible if someone is willing to take the time to modify a default AMX Mod X plugin (which is sometimes not recommended because you will lose your custom functionality the next time you update AMX Mod X).
Can we create new plugin for my code instead of editing amx default plugins ?

Last edited by xExperienced; 07-22-2017 at 05:17.
xExperienced 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 01:38.


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