Raised This Month: $ Target: $400
 0% 

Help with "say /" comands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TudorLaLeagane
Junior Member
Join Date: Mar 2018
Old 12-28-2018 , 07:19   Help with "say /" comands
Reply With Quote #1

Hi! I have a problem, how can i read the args from a "say /" command? Here is my code:

Code:
register_clcmd("say /testarg","CmdTestArg")
Code:
public CmdTestArg(id)
{
	if(!is_user_admin(id))
		return PLUGIN_HANDLED
		
	new arg1[64],arg2[64]
	read_argv(2,arg1,charsmax(arg1))
	read_argv(3,arg2,charsmax(arg2))
	chat_color(id,"!y[MESAJUL] !g: !y%s !g%s",arg1,arg2)
	return PLUGIN_CONTINUE
}

when i write in console "say /testarg 1 2" It works, but when i type with Y it doesn't work
TudorLaLeagane is offline
 



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 07:32.


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