Raised This Month: $ Target: $400
 0% 

Fraglimit help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CLLlAgOB
Senior Member
Join Date: Oct 2007
Location: Russia
Old 01-05-2008 , 18:29   Fraglimit help
Reply With Quote #1

How to limit glasses if input of a command goes from a server? Excuse me, I badly speak on English
This kick work only if myac_fraglimit = 0
Code:
 
register_concmd("myac_kick","kick_now",ADMIN_LEVEL_A,"[USER_ID] [REASON]")
---------------------------------------------------------------
 
public kick_now(id,level,cid)
{
 if (!cmd_access(id, level, cid, 2))
  return PLUGIN_HANDLED
 
 new num[10], reas[32]
 read_argv(1,num,9)
 read_argv(2, reas, 31)
 remove_quotes(reas)
 new numb=str_to_num(num)
 new Frags
 Frags = get_user_frags(id)
 if(Frags >= get_cvar_num("myac_fraglimit"))
  {
  server_cmd("kick #%d ^"%s^"",numb, reas)
  } 
 return PLUGIN_CONTINUE 
}

Last edited by CLLlAgOB; 01-05-2008 at 18:33.
CLLlAgOB 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 11:08.


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