Raised This Month: $ Target: $400
 0% 

register_concmd help (DISPLAYING RULES)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2009 , 12:48   Re: register_concmd help
Reply With Quote #11

what?
__________________
Arkshine is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-08-2009 , 12:49   Re: Plugin Help Correction
Reply With Quote #12

Quote:
Originally Posted by Arkshine View Post
It happens often the the player's index is passed as TaskId for simplicity.
@ That.
vitorrd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-08-2009 , 12:52   Re: register_concmd help
Reply With Quote #13

I don't see the problem. It was just an information for 3Di that for the sake of simplicity the player's index can be used as task id. Because creating an array to pass the player's index is just a pain. So it's more easy to pass directly the player's index as taskid. There is nothing wrong here and it's a common practice which is perfectly fine.
__________________

Last edited by Arkshine; 10-08-2009 at 12:54.
Arkshine is offline
lordshiva
BANNED
Join Date: Aug 2009
Location: Heaven
Old 10-08-2009 , 14:16   Re: register_concmd help
Reply With Quote #14

yeah but can u post the full code again.........when other users type amx_rules in console than all members see LIVE LIVE LIVE message and all....i dont know other users to use amx_match command....only rcon amx_match can use it
lordshiva is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-08-2009 , 14:52   Re: register_concmd help
Reply With Quote #15

What is your obsession with rcon? Just make the command a console command and then only allow an admin with the ADMIN_RCON flag use it.
__________________
fysiks is offline
Old 10-08-2009, 23:22
lordshiva
This message has been deleted by Exolent[jNr]. Reason: You already said this.
lordshiva
BANNED
Join Date: Aug 2009
Location: Heaven
Old 10-09-2009 , 04:53   Re: register_concmd help (DISPLAYING RULES)
Reply With Quote #16

register_concmd("amx_rules","ConsoleCommand_R ules", ADMIN_RCON, "Shows Rules")
register_clcmd("say /rules","ConsoleCommand_Rules", ADMIN_KICK, "Shows Rules")


when i did this.......than when i press rcon amx_rules than it displays server name like LORD READ CLAN RULES instead of players name..........

and also when some1 type amx_rules in console than also it is working but i dont want that instead i want /rules
lordshiva is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-09-2009 , 07:48   Re: register_concmd help (DISPLAYING RULES)
Reply With Quote #17

Quote:
Originally Posted by lordshiva View Post
register_concmd("amx_rules","ConsoleCommand_R ules", ADMIN_RCON, "Shows Rules")
register_clcmd("say /rules","ConsoleCommand_Rules", ADMIN_KICK, "Shows Rules")


when i did this.......than when i press rcon amx_rules than it displays server name like LORD READ CLAN RULES instead of players name..........

and also when some1 type amx_rules in console than also it is working but i dont want that instead i want /rules
That happens because your server is not a player. When you execute a rcon command, your server executes it, not you. If you want amx_rules to work only with rcon, you should check if ID is different than 0 (if it is, then a player is executing it).
vitorrd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-09-2009 , 08:20   Re: register_concmd help (DISPLAYING RULES)
Reply With Quote #18

Stop using RCON!
__________________
fysiks is offline
lordshiva
BANNED
Join Date: Aug 2009
Location: Heaven
Old 10-09-2009 , 11:16   Re: register_concmd help (DISPLAYING RULES)
Reply With Quote #19

nooo yaar i want to use rcon..........in other plugin when i type rcon amx_match than only it will execute.....otherwise if i only write amx_match than it will not work

BUT IN THIS IT IS NOT WORKING,,,,,,,,,,,
lordshiva is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-09-2009 , 14:40   Re: register_concmd help (DISPLAYING RULES)
Reply With Quote #20

Use register_srvcmd( ) for server-only commands ( when you use RCON, you are making the server execute commands ).
__________________
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 22:37.


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