Raised This Month: $ Target: $400
 0% 

Simple Error :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-29-2007 , 10:28   Re: Simple Error :(
Reply With Quote #2

I realy don't get the usage of this plugin but nvm...

Code:
#include <amxmodx>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "DainiusD"
 
#define MATCH_P 10
 
new Players[32], Act;
 
public plugin_init() {
 
 register_plugin(PLUGIN, VERSION, AUTHOR)
 
 get_players(Players, Act);
 
 if (Act < MATCH_P) {
  set_hudmessage(0, 255, 0, -1.0, -1.0)
  show_hudmessage(0, "Waiting For Other Players")      
 }
 
 else if (Act > MATCH_P) {
  set_hudmessage(0, 255, 0, -1.0, -1.0)
  show_hudmessage(0, "Too Many Players On Server")
 }
 
 else if (Act == MATCH_P) {
  set_hudmessage(0, 255, 0, -1.0, -1.0)
  show_hudmessage(0, "Players Have Joined Server, Match Starting...")
 }
}
I think you must do a check whenever a player is enter on server, and after that display the messages :s

Note: plugin_init() - is called once, when plugins are initiallyzed(server open / mapchange)
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 10-29-2007 at 10:32.
Alka 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 01:18.


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