Raised This Month: $ Target: $400
 0% 

Kick no-steam ppl


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-27-2007 , 16:28   Re: Kick no-steam ppl
Reply With Quote #2

Your checking here if the user is a bot.
PHP Code:
if(!is_user_bot(id))
  return 
0
Checking the players authid is pretty much useless here since your going to loop to all the players in player_kick() function
PHP Code:
new authid[32]
 
get_user_authid(id,authid,31)
 
 if(
players limit
 {
  if(
containi(authid,"STEAM_ID_PENDING"))
  {
   
player_kick()
  }
 
 } 
Also the right usage of "containi" is
PHP Code:
if(containi(authid,"STEAM_ID_PENDING") != -1
Because it returns -1 if it cant find anything.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.

Last edited by Cheap_Suit; 05-27-2007 at 16:33.
Cheap_Suit is offline
 



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 10:33.


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