Raised This Month: $ Target: $400
 0% 

Help on plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-30-2007 , 20:49   Re: Help on plugin
Reply With Quote #4

Try this :
Code:
#include <amxmodx> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" new cvar_max_bots, cvar_bot_quota public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     cvar_max_bots = register_cvar("amx_botnubmer", "6")     cvar_bot_quota = get_cvar_pointer("bot_quota") } public client_connect(id)     if(!is_user_bot(id))         check_playernumber() public client_disconnect(id)     if(!is_user_bot(id))         check_playernumber() check_playernumber() {     new players[32], inum, maxbots = get_pcvar_num(cvar_max_bots)     get_players(players, inum, "c")     if( inum < maxbots )         set_pcvar_num(cvar_bot_quota, maxbots - inum)     else         set_pcvar_num(cvar_bot_quota, 0) }

Last edited by ConnorMcLeod; 10-01-2007 at 22:39.
ConnorMcLeod 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 16:09.


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