Raised This Month: $ Target: $400
 0% 

Simple question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 04-23-2016 , 05:43   Simple question
Reply With Quote #1

i want this function work for ct and also rcon flagged admins how to do it?
Code:
public Touch_Wall(entity, id)
{
	if(is_user_alive(id))
	{
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_CT) {                                   
		if(g_flDelay[id] < get_gametime())
		{
			new intCvarButton;
			intCvarButton = get_pcvar_num(g_cvarButton);
			
			if(!intCvarButton || (intCvarButton && pev(id, pev_button) & IN_USE))
			{
				set_player_behindwall(id);
			}
		}
		                             }
	}
}
pupdebox is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-23-2016 , 06:33   Re: Simple question
Reply With Quote #2

Code:
public Touch_Wall(entity, id) {     new intCvarButton = get_pcvar_num(g_cvarButton)     if ( is_user_alive(id)         && g_flDelay[id] < get_gametime()         && (             cs_get_user_team(id) == CS_TEAM_CT             || get_user_flags(id) & ADMIN_RCON         )         && (             ! intCvarButton             || pev(id, pev_button) & IN_USE         ) )         set_player_behindwall(id); }
__________________

Last edited by Black Rose; 04-23-2016 at 06:41.
Black Rose is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 04-23-2016 , 07:19   Re: Simple question
Reply With Quote #3

Thank you for help sir. This is very teaching
pupdebox is offline
Reply


Thread Tools
Display Modes

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 18:40.


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