Raised This Month: $ Target: $400
 0% 

[SOLVED] remove_user_flags not working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-13-2013 , 18:35   [SOLVED] remove_user_flags not working
Reply With Quote #1

im testing some new things on my LAN server... and

remove_user_flags( index ) is not working..

its set to remove all flags on client_connect( id ).

but once i connect and spawn i still have all my flags still...

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Activate Admin" #define VERSION "1.0" #define AUTHOR "Blizzard" new szFlags[ 33 ]; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_concmd( "test", "test", 0, ": test <password>" ); } public client_connect( id ) {     szFlags[ id ] = get_user_flags( id );     remove_user_flags( id ); } public test( id ) {     new iArg[ 32 ];     read_argv( 1, iArg, charsmax( iArg ) );         if( equal( iArg, "password" ) )     {         set_user_flags( id, read_flags( szFlags[ id ] ) );         return PLUGIN_HANDLED;     }     else if( !equal( iArg, "password" ) )     {         console_print( id, "Usage: test <password>" );     }     return PLUGIN_HANDLED; }
__________________
Blizzard_87 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode