Raised This Month: $ Target: $400
 0% 

Giving a player flags, somebody joins = flags are removed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xTr3m3r
Member
Join Date: Feb 2010
Old 02-20-2017 , 16:17   Re: Giving a player flags, somebody joins = flags are removed
Reply With Quote #3

Dude Im not asking you to code my bm, Im asking you guys to tell me how do i fix an 'error'. This can be used in any other plugin as well. Thats not a blockmaker topic, its about giving rights, it just happens to be included in the blockmaker im using.

EDIT:

PHP Code:
GiveAccess(id) { 

    if ( ! ( 
get_user_flags(id) & ADMIN_LEVEL2 ) ) 
        return; 

    new 
playerbody
    
get_user_aiming(idplayerbody); 

    if ( ! 
player || ! is_user_connected(player) ) 
        return; 

    new 
szPlayerName[32]; 
    
get_user_name(playerszPlayerNamecharsmax(szPlayerName)); 

    new 
tempFlags get_user_flags(player); 

    if ( 
tempFlags ADMIN_LEVEL) { 
        
client_print(idprint_chat"%s %s has got access already."gszPrefixszPlayerName); 
        return; 
    } 

    
set_user_flags(playerread_flags("u")); 

    
client_print(playerprint_chat"%s You now have access. Enjoy!"gszPrefix); 
    
client_print(idprint_chat"%s %s has access now."gszPrefixszPlayerName); 

Can you help me now?

Last edited by xTr3m3r; 02-20-2017 at 16:21.
xTr3m3r 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 20:59.


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