Raised This Month: $ Target: $400
 0% 

Ignore HLTV users


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PauliusBa
Senior Member
Join Date: Aug 2006
Location: Lithuania
Old 06-12-2009 , 11:24   Ignore HLTV users
Reply With Quote #1

Code:
 
public client_putinserver(id) {
 // no bots or admin immunity users..but what to do to ignore HLTV?
 if ((is_user_bot(id)) || (get_user_flags(id)&ADMIN_ADMIN)) {
  return PLUGIN_HANDLED
 }
no bots or admin immunity users..but what to do to ignore HLTV? Could somebody complete this criptlet for me?
Thanks
PauliusBa is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-12-2009 , 11:27   Re: Ignore HLTV users
Reply With Quote #2

PHP Code:
public client_putinserver(id
{
    if ( 
is_user_botid ) || ( get_user_flagsid ) & ADMIN_IMMUNITY ) || is_user_hltvid ) ) 
        return 
PLUGIN_HANDLED;


__________________

Last edited by Bugsy; 06-12-2009 at 11:53.
Bugsy is offline
PauliusBa
Senior Member
Join Date: Aug 2006
Location: Lithuania
Old 06-15-2009 , 04:23   Re: Ignore HLTV users
Reply With Quote #3

THANK YOU.
I wonder why do you put spaces near ('s though
I did this:
Code:
public client_putinserver(id) {
 // no bots or admin immunity users..but what to do to ignore HLTV?
 if ((is_user_bot(id)) || (is_user_hltv (id)) || (get_user_flags(id)&ADMIN_ADMIN)) {
  return PLUGIN_HANDLED
 }
PauliusBa is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-15-2009 , 08:29   Re: Ignore HLTV users
Reply With Quote #4

Quote:
Originally Posted by PauliusBa View Post
THANK YOU.
I wonder why do you put spaces near ('s though
I did this:
Code:
public client_putinserver(id) {
 // no bots or admin immunity users..but what to do to ignore HLTV?
 if ((is_user_bot(id)) || (is_user_hltv (id)) || (get_user_flags(id)&ADMIN_ADMIN)) {
  return PLUGIN_HANDLED
 }
Just to make it neater & easier to read. Whitespace is your friend.
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2009 , 19:11   Re: Ignore HLTV users
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
Just to make it neater & easier to read. Whitespace is your friend.
I don't know about you but WhiteSpace is my lover lol. I can't script without it.
__________________
fysiks 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 14:04.


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