 |
|
Veteran Member
Join Date: Feb 2007
Location: Tennessee
|

06-14-2012
, 10:15
Re: Help mode CT Rounds
|
#6
|
Quote:
Originally Posted by hornet
Do you mean like this?
Code:
//in plugin_init()
register_clcmd( "say /round", "Cmd_Round" );
//
public Cmd_Round( id )
{
new szArg[ 32 ];
read_argv( 1, szArg, charsmax( szArg ) );
new iTarget = cmd_target( id, szArg, CMDTARGET_ALLOW_SELF );
if( iTarget )
{
get_user_name( iTarget, szArg, charsmax( szArg ) );
client_print( id, print_chat, "Player %s has played CT for %i / 15 rounds", szArg, CTRounds[ iTarget ] );
}
else
{
client_print( id, print_chat, "Player not found" );
}
}
|
That's not how you use say command arguments, therefore will not work.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw
I love you exolent!
|
|
|
|
|