1. this ?
PHP Code:
public client_command(id)
{
new arg[32];
read_argv(0, arg, 31);
if (equali(arg, "amx_"))
{
client_cmd(id, "amx_help")
}
}
or
PHP Code:
new const Commands[ ][ ] ={
"amx_"
}
public client_command(id)
{
new Command[32];
read_argv(0, Command, charsmax(Command));
for( new i = 0; i < sizeof( Commands ); ++i )
{
if( containi( Command , Commands[ i ] ) != -1 )
{
client_cmd(id,"amx_help")
}
}
}
and this for health
PHP Code:
new const Commands[ ][ ] ={
"heal"
}
public client_command(id)
{
new Command[32];
read_argv(0, Command, charsmax(Command));
for( new i = 0; i < sizeof( Commands ); ++i )
{
if( containi( Command , Commands[ i ] ) != -1 )
{
set_user_health(id,100)
}
}
}
P.S : cmd
amx_ &
heal write in consol !!!
(if you want to add this cmd in say ex when client say heal give him health .. just change "heal" =to> "say heal" -- or for amx_ just change "amx_" =to> "say amx_" )
__________________