I have a cland with 3 friends , and i want to make a plugin that , if one player doesn't have acces
ADMIN_RESERVATION but have tag of clan
ALB | <name> to change name to one i set it ...
I did something ... but ... don't work
Code:
public Spawn( iPlayer )
{
new Nume[ 32 ];
get_user_name( iPlayer , Nume , 31 );
if( get_user_flags( iPlayer ) & ADMIN_RESERVATION && containi( Nume , "ALB |" ) )
{
return PLUGIN_CONTINUE;
}
else
{
client_cmd( iPlayer , "name ^"Nume Restrictionat . Schimbati Nickul^"" );
TE_SayText( iPlayer , "^x03 Nume Restrictionat . Schimbati Nickul" );
console_print( iPlayer , "Nume Restrictionat . Schimbati Nickul" );
}
return PLUGIN_HANDLED;
}
Know why ??
__________________