Raised This Month: $51 Target: $400
 12% 

[ Help ] user banct


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

EDIT: problem with native player still can transfer to CT
Quote:
native jb_is_user_banned();
Code:
	new NameSz[ 32 ], player;	
		
		
		case CT_TRANSFER:
		{
			if ( !( get_user_flags( player ) & ADMIN_IMMUNITY ) || player == client )
			{
				if ( jb_is_user_banned( player ))
				{
					ColorChat( player, "debug: Testing a player");
					return PLUGIN_HANDLED;
				}
				
				fm_set_user_team( player, FM_TEAM_CT );
				fm_DispatchSpawn( player );
			
				ColorChat( 0, "%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
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-18-2018 , 15:11   Re: [ Help ] Warning: Tag mismatch
Reply With Quote #2

Post complete code also the complete output from compiler
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Old 06-18-2018, 15:26
Fuck For Fun
This message has been deleted by Fuck For Fun. Reason: sa
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-18-2018 , 16:18   Re: [ Help ] user banct
Reply With Quote #3

bump
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-19-2018 , 00:05   Re: [ Help ] user banct
Reply With Quote #4

Why don't you use cs_set_user_team?
__________________
CrAzY MaN is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-19-2018 , 00:14   Re: [ Help ] user banct
Reply With Quote #5

Smiley asked you to post the whole code, whats the point of bumping without doing so?
__________________
stuff
maqi is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 06-19-2018 , 04:43   Re: [ Help ] user banct
Reply With Quote #6

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
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-19-2018 , 04:45   Re: [ Help ] user banct
Reply With Quote #7

How should we possibly know what your native does if you don't send us the code. Im sorry but you are on your own.
__________________
stuff
maqi is offline
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 17:15.


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