Raised This Month: $ Target: $400
 0% 

[ Help ] user banct


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-19-2018 , 04:43   Re: [ Help ] user banct
Reply With Quote #1

Quote:
Originally Posted by CrAzY MaN View Post
Why don't you use cs_set_user_team?
Right, this is my old code that's just long and I do not have the power to change everything to cs_set_user_team

But one day I will.
Quote:
Originally Posted by maqi View Post
Smiley asked you to post the whole code, whats the point of bumping without doing so?
There is no full code here is just example, I'm trying to ask how an option to block something that has a NATIVE ...

If you want to block someone from transferring to CT
This is my NATIVE: if (jb_is_user_banned (player))
And the player is still passing ... Maybe I should
if (! (jb_is_user_banned (player))

PHP Code:
    new NameSz32 ], player;    
        
        
        case 
CT_TRANSFER:
        {
            if ( !( 
get_user_flagsplayer ) & ADMIN_IMMUNITY ) || player == client )
            {
                if ( 
jb_is_user_bannedplayer ))
                {
                    
ColorChatplayer"debug: Testing a player");
                    return 
PLUGIN_HANDLED;
                }
                
                
fm_set_user_teamplayerFM_TEAM_CT );
                
fm_DispatchSpawnplayer );
            
                
ColorChat0"%s ^3%s^1 has used^4 Counter-Terrorist Transfer^1 command."Gisha[AdminMyAccess[client]],NameSz)
            } 

Last edited by Fuck For Fun; 06-19-2018 at 04:47.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Reply



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 12:17.


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