Raised This Month: $ Target: $400
 0% 

about kick "[16bpp]" problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-02-2009 , 01:16   about kick "[16bpp]" problem
Reply With Quote #1

yesterday, i wrote a code can kick the player name that add "[16bpp]" in front

the code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "16bpp_kick"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "K.K.Lv"
public plugin_init()
{
 
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
 
set_task(0.1"kick"___"b")
}
public 
kick()
{
 new 
players[32], pnum
 
new playersid
 get_players
(playerspnum)
 for (new 
0pnumi++)
 {
  new 
name[32]
  
playersid players[i]
  if (
is_user_connected(playersid))
  {
   
get_user_name(playersidname31)
   if(
contain(name"[16bpp]") != -1)
   {
    
server_cmd("kick #%d ^"For 16bpp^""get_user_userid(playersid))
   }
  }
 }
 return 
PLUGIN_CONTINUE

any problem here???
K.K.Lv is offline
Send a message via MSN to K.K.Lv
 



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:06.


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