View Single Post
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-10-2016 , 08:38   Re: help with CSPUM.
Reply With Quote #28

Bugsy i have problems in adding to remkey your fucntion, i tried like that:
PHP Code:

    iFoundIndex 
GetWeaponIndexszWeaponArg );
    
    if( 
iFoundIndex == GWI_NotFound )
    {
        
client_printidprint_console"This weapon '%s' is not saved yet or not exist, type amx_cspum_blockedlist to see all the keys blocked!"szWeaponArg );
        return 
PLUGIN_HANDLED;

    } 

Wich is not working if i put 'x' or 'd' or a letter wich contain from the blocked weapons, btw, also i made a new function to show all the blocked weapons:
PHP Code:
public blockedlistidlevelcid )
{
    if( !
cmd_accessid levelcid) )
        return 
PLUGIN_HANDLED;

    
client_printid print_console " ~~ All blocked weapons ~~~ " );

    for( new 
0sizeofgKeyList ); i++ )
    {
        if ( 
gKeyList][ ] && !( gIgnoreWeapons & ( << ) ) && ( gBlockWeapons & ( << ) ) )
                
client_printid print_console "%s"gKeyList] );
    }
    return 
PLUGIN_HANDLED;



About the problem , i cannot check with GWI_Notfound return if no index founded, Gwi duplicate return if chars from the contrained string are founded , but i want to avoid that, i want to force admin put the whole key... so i'm confuse, however, the whole code:
SMA
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor