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

[REQ] Command Macros.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sir Pigles
Junior Member
Join Date: Aug 2014
Old 08-22-2015 , 15:51   [REQ] Command Macros.
Reply With Quote #1

I have been looking for a way that the client can use one command (I.E. !potato || /potato), then the server will invoke one, or more commands on them. Anything helps, thanks.
Sir Pigles is offline
Keys PK
Member
Join Date: Mar 2015
Location: Romania
Old 08-23-2015 , 08:08   Re: [REQ] Command Macros.
Reply With Quote #2

PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_clcmd("say /potato""dosomething");
}
public 
dosomething(id)
{
    
//commands

?
Keys PK is offline
Send a message via Skype™ to Keys PK
Sir Pigles
Junior Member
Join Date: Aug 2014
Old 08-23-2015 , 14:25   Re: [REQ] Command Macros.
Reply With Quote #3

Quote:
Originally Posted by Keys PK View Post
PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_clcmd("say /potato""dosomething");
}
public 
dosomething(id)
{
    
//commands

?
That should work, but how would I target the person who invoked the command?

Example:

sm_resize <TARGET> 5
Sir Pigles is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-23-2015 , 17:17   Re: [REQ] Command Macros.
Reply With Quote #4

What game do you need this for?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Sir Pigles
Junior Member
Join Date: Aug 2014
Old 08-24-2015 , 17:02   Re: [REQ] Command Macros.
Reply With Quote #5

Quote:
Originally Posted by wickedd View Post
What game do you need this for?
TF2
Sir Pigles is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-24-2015 , 20:17   Re: [REQ] Command Macros.
Reply With Quote #6

Quote:
Originally Posted by Sir Pigles View Post
TF2
AMX Mod X doesn't run on TF2 so you'll need to inquire in the SourceMod section.
__________________
fysiks is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 08-25-2015 , 07:07   Re: [REQ] Command Macros.
Reply With Quote #7

Wrong Section
SourceMod
Dr Zayd 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:31.


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