@Relaxing that will not work. get_user_name() expects a 1-32 client id.
PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_concmd( "vote" , "VoteConCmd" );
}
public VoteConCmd( id )
{
new szArg[ 32 ] , iVictim , szVoter[ 32 ];
read_argv( 1 , szArg , charsmax( szArg ) );
iVictim = cmd_target( id , szArg );
if ( iVictim )
{
get_user_name( id , szVoter , charsmax( szVoter ) );
get_user_name( iVictim , szArg , charsmax( szArg ) );
console_print( id , "%s voted %s" , szVoter , szArg);
}
}
__________________