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

[Question] CSS / CSGO - Command Scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tenchuu1987
Member
Join Date: Sep 2019
Old 12-31-2019 , 11:41   [Question] CSS / CSGO - Command Scripting
Reply With Quote #1

Hi there,

i would very much like to program a command that replaces another command. In other words, if I now have the command / pay, a corresponding plugin would now output, but I would like to replace this command with my own command, overwrite it. How would that be possible? The release should only take place in the game's developer console.
Tenchuu1987 is offline
Tenchuu1987
Member
Join Date: Sep 2019
Old 02-22-2020 , 05:57   Re: [Question] CSS / CSGO - Command Scripting
Reply With Quote #2

Push!
Tenchuu1987 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 02-22-2020 , 12:57   Re: [Question] CSS / CSGO - Command Scripting
Reply With Quote #3

Use AddCommandListener
__________________
Ilusion9 is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 02-22-2020 , 16:05   Re: [Question] CSS / CSGO - Command Scripting
Reply With Quote #4

PHP Code:
public void OnPluginStart() 

    
AddCommandListener(fwCmdListener"sm_pay"); 
}


public 
Action fwCmdListenerint iClient, const char[] sCmdint iArgs 

    
//code
    
    
return Plugin_Stop//Stop any further action 

__________________

Last edited by Rohanlogs; 02-25-2020 at 01:03.
Rohanlogs is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-24-2020 , 18:22   Re: [Question] CSS / CSGO - Command Scripting
Reply With Quote #5

Plugin_Handled will not stop further actions, use Plugin_Stop
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Rohanlogs
Senior Member
Join Date: Nov 2015
Old 02-25-2020 , 01:03   Re: [Question] CSS / CSGO - Command Scripting
Reply With Quote #6

Quote:
Originally Posted by Dragokas View Post
Plugin_Handled will not stop further actions, use Plugin_Stop
You might be right. I stand corrected.
__________________
Rohanlogs 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 20:19.


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