Raised This Month: $ Target: $400
 0% 

No players map vote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ArthHa
Member
Join Date: Apr 2014
Old 12-09-2014 , 14:21   No players map vote
Reply With Quote #1

Code:
#include <amxmodx>

#define Plugin "No Players Map"
#define Version "1.0"
#define Author "X-factor"


new cv_clients
new bool:good_maps

public plugin_init()
{
    register_plugin(Plugin, Version, Author)
    cv_clients = register_cvar("nomap_players", "6")
    set_task(20.0, "check_players", 0, _, _, "b")
    
    new szMapname[64];
    get_mapname(szMapname, 63)
    
    if (equali(szMapname, "cs_max") || equali(szMapname, "de_dust2_2x2") || equali(szMapname, "de_dust2_2x2_winter") || equali(szMapname, "de_inferno_2x2_winter") || equali(szMapname, "fy_snow") || equali(szMapname, "fy_pool_day") || equali(szMapname, "awp_india"))
    {
        good_maps = true
    }
}

public check_players()
{
    if(get_playersnum() < get_pcvar_num(cv_clients) && !good_maps)
    {
        client_print_color(0, print_chat, "^1[^4NoPlayers^1] Uz^3 10^1 sekundziu prasides balsavimas del mazesnio zemelapio!")
        set_task(10.0, "change_map" )
    }
    return PLUGIN_CONTINUE
}

public change_map()
{
    // COMMAND
}
How i need to start vote for changing the map? :} I want to players can choose from de_dust2_2x2 and cs_max
__________________


ArthHa is offline
Send a message via Skype™ to ArthHa
 



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


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