Raised This Month: $ Target: $400
 0% 

Solved CS 1.6 Map Changer Plugin (Under 24 player)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hasanalizxc
Senior Member
Join Date: May 2018
Old 06-05-2018 , 08:25   CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #1

Hi All,

Hope you are well. I would like to automatically switch to de_dust2 or de_inferno when the number of players drops below 22 in any map. Have you ever heard of such a plugin?

Thanks in advance.

Last edited by hasanalizxc; 06-05-2018 at 12:02.
hasanalizxc is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 06-05-2018 , 09:22   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <amxmisc>

new sMap[33],bool:bMap;
new const 
cMaps[][] = { 
    
"de_inferno"
    
"de_dust2" 
};

public 
plugin_init() {
    
register_plugin("AutoChangeMap","0.1","pup");
    
get_mapname(sMap,charsmax(sMap));

    for(new 
i=0;i<sizeof(cMaps);i++)
        if(
equali(sMap,cMaps[i])) bMap true;
}

public 
client_disconnect(idcheck();

public 
client_putinserver(idcheck();

public 
check() {
    if(
bMap) return;

    new 
num,players[32];
    
get_players(playersnum);
    if(
num >= 22) return; 
    
    
server_cmd("changelevel %s",cMaps[random(sizeof(cMaps))]);

__________________
Quote:
Originally Posted by wickedd View Post
Make me or STFU boy
pupdebox is offline
hasanalizxc
Senior Member
Join Date: May 2018
Old 06-05-2018 , 09:47   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #3

Does it choose dust2 or inferno random?
hasanalizxc is offline
pupdebox
Senior Member
Join Date: Feb 2016
Location: Wakanda
Old 06-05-2018 , 10:01   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #4

Evet kanka
__________________
Quote:
Originally Posted by wickedd View Post
Make me or STFU boy
pupdebox is offline
hasanalizxc
Senior Member
Join Date: May 2018
Old 06-05-2018 , 11:27   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #5

Thanks

Last edited by hasanalizxc; 06-07-2018 at 13:25.
hasanalizxc is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-05-2018 , 11:34   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #6

Maybe you can try this one
PHP Code:
#include <amxmodx>
#if AMXX_VERSION_NUM < 183
    #define client_disconnected client_disconnect
#endif

public plugin_init() register_plugin("On Request""1.0""DiGiTaL")
public 
client_disconnected(id)    checkCondition()

public 
checkCondition()
{
    new 
szMap[32]
    new 
curplay get_playersnum()
    
get_mapname(szMapcharsmax(szMap))
    if(
curplay 24 && !equali(szMap"de_dust2"))
        
server_cmd("changelevel de_dust2")

instinctpt1 is offline
hasanalizxc
Senior Member
Join Date: May 2018
Old 06-05-2018 , 17:03   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #7

Why pupdebox banned? I couldnt understand anything. @moderators?
hasanalizxc is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 06-05-2018 , 17:56   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #8

Probably not writing in English in the forum ...
iceeedr is offline
Send a message via Skype™ to iceeedr
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-06-2018 , 01:19   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #9

Quote:
Originally Posted by hasanalizxc View Post
Why pupdebox banned? I couldnt understand anything. @moderators?
Delete your comments or edit yours too xD
Save yourself from our cruel moderators

Ps : This is an English forum bro .. why not staying with the global language ?
instinctpt1 is offline
hasanalizxc
Senior Member
Join Date: May 2018
Old 06-07-2018 , 13:26   Re: CS 1.6 Map Changer Plugin (Under 24 player)
Reply With Quote #10

I understood this rule but he didnt swear. He said only "yes buddy".
hasanalizxc 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 15:58.


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