Quote:
Originally Posted by Grovliom
i already know about register_clcmd and register_concmd, but is there another way to get what player is saying, like input name and calculator, and not in plugin_init?
|
try this:
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("BlaBla" , "1.0" , "MahBodSr")
register_clcmd( "say" , "handleSay" )
}
public handleSay()
{
new msg[256]
read_args( msg , 255 ) // this is what client has written ( with Double-Qoutes at the beginning and end of string )
remove_quotes( msg ) // remove Double-Qoutes from the beggining and end of string
}