AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ignore HLTV users (https://forums.alliedmods.net/showthread.php?t=94545)

PauliusBa 06-12-2009 11:24

Ignore HLTV users
 
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 :)

Bugsy 06-12-2009 11:27

Re: Ignore HLTV users
 
PHP Code:

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




PauliusBa 06-15-2009 04:23

Re: Ignore HLTV users
 
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
 }


Bugsy 06-15-2009 08:29

Re: Ignore HLTV users
 
Quote:

Originally Posted by PauliusBa (Post 849296)
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. :gyar:

fysiks 06-15-2009 19:11

Re: Ignore HLTV users
 
Quote:

Originally Posted by Bugsy (Post 849417)
Just to make it neater & easier to read. Whitespace is your friend. :gyar:

I don't know about you but WhiteSpace is my lover :) lol. I can't script without it.


All times are GMT -4. The time now is 14:04.

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