Raised This Month: $ Target: $400
 0% 

I don't know why it's not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killergirl
Senior Member
Join Date: Jul 2010
Old 11-28-2010 , 05:05   Re: I don't know why it's not working
Reply With Quote #1

The plugin starts when 1 minute remains from the current map. When 1 minute remains the plugin check the number of the players, and not when the server changes the map.

I also check if the plugin works well, and yes...

PHP Code:
#include <amxmodx>

new pcvar_min_players;

static 
players[32

public 
plugin_init()

register_plugin("asd","1.0","KG")

pcvar_min_players register_cvar("min_players""6")
}

public 
juc(id){
set_task(1.0,"jucdoi",id)
}

public 
jucdoi(id){
new 
playerCount;

get_players(playersplayerCount"ch");
if (
playerCount <= get_pcvar_num(pcvar_min_players)){
client_print(0print_chat"THE NUMBER OF PLAYERS IS LESS OR EQUALY THAN %d"get_cvar_num("min_players"));
}
else{
client_print(0print_chat"THE NUMBER OF PLAYERS IS HIGHER THAN %d"get_cvar_num("min_players"));
}
return 
PLUGIN_HANDLED

killergirl is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-28-2010 , 13:24   Re: I don't know why it's not working
Reply With Quote #2

Are you saying that the code in your first post is not in plugin_init()? You are going to need to show your whole code to get help. If it's more than a couple hundred lines then attach the .sma file.
__________________
fysiks is offline
Reply



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


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