Raised This Month: $ Target: $400
 0% 

Help on plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 09-30-2007 , 18:20   Help on plugin
Reply With Quote #1

im trying to make a plugin that on CS:CZ it adds bots when there are 0 players and takes them away when players enter

would this work

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
new p_botnumber
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
p_botnumber register_cvar"amx_botnubmer""6" );
 
}
public 
check_playernumber()
{
 if(!
get_playersnum 0)
  
server_cmd("bot_quota %s"p_botnumber)
{
 else
 {
  if(!
get_playersnum()==0)
   
server_cmd("bot_quota 0")
  } 
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
 



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