01-16-2012, 05:00 PM
//GLOBAL VARS
new players = 0
new bool:more_than_20 = false
new bool:playing_5v5 = false
public plugin_init() {
//Register the commands
register_clcmd("amx_55", "set_5v5", "Facem 5v5 0-yes 1-no")
}
public set_5v5(){
new cmd[1]
read_argv(0, cmd, 1)
if(cmd = "1"){
playing_5v5 = true
}else{
playing_5v5 = false
ZUZUK WILL GO OUT!!! bye bye!
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public client_putinserver(id) {
if(playing_5v5)
{
players++
if ( players >= 19 ){
more_than_20 = true
ZUZUK JOINS!!! HAHA!
}
return PLUGIN_CONTINUE
}else{
return PLUGIN_HANDLED
}
}
public client_disconnect(id){
players--
if ( players < 19 ){
more_than_20 = false
ZUZUK WILL GO OUT!!! bye bye!
}
}
=)))))
new players = 0
new bool:more_than_20 = false
new bool:playing_5v5 = false
public plugin_init() {
//Register the commands
register_clcmd("amx_55", "set_5v5", "Facem 5v5 0-yes 1-no")
}
public set_5v5(){
new cmd[1]
read_argv(0, cmd, 1)
if(cmd = "1"){
playing_5v5 = true
}else{
playing_5v5 = false
ZUZUK WILL GO OUT!!! bye bye!
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public client_putinserver(id) {
if(playing_5v5)
{
players++
if ( players >= 19 ){
more_than_20 = true
ZUZUK JOINS!!! HAHA!
}
return PLUGIN_CONTINUE
}else{
return PLUGIN_HANDLED
}
}
public client_disconnect(id){
players--
if ( players < 19 ){
more_than_20 = false
ZUZUK WILL GO OUT!!! bye bye!
}
}
=)))))