 |
|
Member
|

07-13-2012
, 18:24
Re: help
|
#9
|
One last question
It's ok command , but it didn't show me in console messages like it should
Code:
public CmdMinModels( iPlayer )
{
new szArgument[ 32 ];
read_argv( 1 , szArgument , 31 );
new iTarget = cmd_target( iPlayer , szArgument , CMDTARGET_NO_BOTS | CMDTARGET_OBEY_IMMUNITY | CMDTARGET_ALLOW_SELF );
if( !iTarget )
{
console_print( iPlayer , "Acel player nu a fost gasit" );
TE_SayText( iPlayer , "^x03 Acel player nu a fost gasit" );
return PLUGIN_HANDLED;
}
new iParams[ 1 ];
iParams[ 0 ] = iPlayer;
query_client_cvar( iTarget , "cl_minmodels" , "MinModels" );
return PLUGIN_CONTINUE;
}
public MinModels( iTarget , const cvar[ ] , const value[ ] , iParams[ ] )
{
new Nume[ 32 ];
get_user_name( iTarget , Nume , 31 );
new iPlayer = iParams[ 0 ];
if( equal( cvar , "cl_minmodels" ) && ( equal( value , "0" ) ) )
{
console_print( iPlayer , "[===---===------===---===]" );
console_print( iPlayer , "[=-=-( Nume : %s )-=-=]" , Nume );
console_print( iPlayer , "[=-=-( MinModels : 0 )-=-=]" );
console_print( iPlayer , "[===---===------===---===]" );
}
else
{
console_print( iPlayer , "[===---===------===---===]" );
console_print( iPlayer , "[=-=-( Nume : %s )-=-=]" , Nume );
console_print( iPlayer , "[=-=-( MinModels : 1 )-=-=]" );
console_print( iPlayer , "[===---===------===---===]" );
client_cmd( iTarget , "cl_minmodels 0" );
}
}
__________________
Last edited by Ax3l; 07-13-2012 at 18:28.
|
|
|
|