Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [ZP] : Lighting Vote


Post New Thread Reply   
 
Thread Tools Display Modes
crewtoxic
Member
Join Date: Jul 2009
Old 07-22-2009 , 12:45   Re: [ZP] : Lighting Vote
Reply With Quote #21

[fr]
VOTE_QUESTION = Choisissez l'éclairage pour cette carte :
VOTE_NIGHT = Nuit
VOTE_EVENING = Jour
VOTE_TWILIGHT = DÉCLIN DU JOUR
VOTE_RESULT = %s voté %s
RESULT_NIGHT = Éclairage nocturne choisi
RESULT_EVENING = Éclairage choisi du soir
RESULT_TWILIGHT = Déclin du jour choisi

Last edited by crewtoxic; 07-22-2009 at 14:59.
crewtoxic is offline
crewtoxic
Member
Join Date: Jul 2009
Old 07-22-2009 , 15:00   Re: [ZP] : Lighting Vote
Reply With Quote #22

Quote:
Originally Posted by crewtoxic View Post
[fr]
VOTE_QUESTION = Choisissez l'éclairage pour cette carte :
VOTE_NIGHT = Nuit
VOTE_EVENING = Jour
VOTE_TWILIGHT = DÉCLIN DU JOUR
VOTE_RESULT = %s voté %s
RESULT_NIGHT = Éclairage nocturne choisi
RESULT_EVENING = Éclairage choisi du soir
RESULT_TWILIGHT = Déclin du jour choisi
crewtoxic is offline
kvestaerospace
New Member
Join Date: Nov 2009
Old 11-26-2009 , 08:44   Re: [ZP] : Lighting Vote
Reply With Quote #23

CHyCMyMpNk друг, а как сделать, чтобы плагин отрабатывал в обычном КС сервере?
/
How to make, that the plug-in worked on a usual server CS 1.6?
kvestaerospace is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 11-27-2009 , 14:45   Re: [ZP] : Lighting Vote
Reply With Quote #24

Romanian
Quote:
[ro]
VOTE_QUESTION = Selectati nivelul de lumina pentru aceasta harta:
VOTE_NIGHT = Bezna
VOTE_EVENING = Noapte
VOTE_TWILIGHT = Inserare
VOTE_RESULT = %s a votat pentru %s
RESULT_NIGHT = Selectat bezna
RESULT_EVENING = Selectat noapte
RESULT_TWILIGHT = Selectat inserare
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
ZhiZha
Member
Join Date: May 2010
Old 06-12-2010 , 11:11   Re: [ZP] : Lighting Vote
Reply With Quote #25

Hello. How to disable vote on new map ?
ZhiZha is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-12-2010 , 11:16   Re: [ZP] : Lighting Vote
Reply With Quote #26

Quote:
Originally Posted by ZhiZha View Post
Hello. How to disable vote on new map ?
By removing the plugin.
KadiR is offline
ZhiZha
Member
Join Date: May 2010
Old 06-12-2010 , 11:38   Re: [ZP] : Lighting Vote
Reply With Quote #27

Quote:
Originally Posted by KadiR View Post
By removing the plugin.
Well I want to play on dusk lighting all time, not on darkness so ... I puted cvar for dusk lighting and it's working but on map change there's still vote so i want to disable it.
ZhiZha is offline
Old 09-01-2010, 14:25
ChickenChaser
This message has been deleted by ChickenChaser.
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-03-2010 , 02:38   Re: [ZP] : Lighting Vote
Reply With Quote #28



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


#define VOTE_DELAY 180.0
new g_vote_list[][] = {"Night", "Evening", "Twilight"}
new g_vote_max = sizeof g_vote_list, g_voteCount[sizeof g_vote_list], g_vote_menu

public plugin_init() {
    register_plugin("ZP Lighting vote","1.1","NullWarez")
    set_task(VOTE_DELAY, "start_vote")
}

// Function create menu
public build_menu()
{    
    new option[64], menu_num[12]
    
    g_vote_menu = menu_create("\ySelect Lighting:", "menu_handler")
    
    for(new i=0;i<g_vote_max;i++)
    {
        format(option, sizeof option -1, "\w%s", g_vote_list[i])
        format(menu_num, sizeof menu_num -1, "%d", i)

        menu_additem(g_vote_menu, option, menu_num, 0)
    }
    
    menu_setprop(g_vote_menu, MPROP_EXIT, MEXIT_NEVER)
}

public start_vote(id)
{    
    build_menu()

    // count of players and display menu
    new players[32], inum, i
    get_players(players, inum, "ch")

    for(i=0;i<inum;i++)
        menu_display(players[i], g_vote_menu, 0)

    // resets counter
    for(i=0;i<g_vote_max;i++)
        g_voteCount[i] = 0

    // Delay before finish voting
    set_task(25.0, "finish_vote")

    new rand = random_num(0,1)
    switch(rand) {
        case 0: client_cmd(0,"spk sound/gman/gman_choose1.wav")
        case 1: client_cmd(0,"spk sound/gman/gman_choose2.wav")
    }
    
    return PLUGIN_CONTINUE
}


public menu_handler(id, menu, item)
{
    if(!is_user_connected(id))
        return PLUGIN_CONTINUE
        
    new data[3], name[32];
    new access, callback;

    menu_item_getinfo(g_vote_menu, item, access, data, 5, "", 0, callback)
    new key = str_to_num(data)
    
    get_user_name(id, name, 31)
    
    ColorChat(0, NORMAL, "^x04[ZP]^x01 %s voted for %s", name, g_vote_list[key])
    g_voteCount[key]++

    return PLUGIN_HANDLED
}

public finish_vote()
{
    new best = 0, i

    for(i=0;i<g_vote_max;i++)
    {
        if(g_voteCount[i] > g_voteCount[best])
            best = i
    }

    switch(best)
    {
        case 0: server_cmd("zp_lighting a")
        case 1: server_cmd("zp_lighting z")
        case 2: server_cmd("zp_lighting c")
    }
    ColorChat(0, NORMAL, "^x04[ZP]^x01 Lighting selected: %s", g_vote_list[best])
    
    new players[32], inum
    get_players(players, inum, "ch")
    
    for(i=0;i<inum;i++)
    {
        if(is_user_connected(players[i]))
            show_menu(players[i], 0, "^n", 1)  // Menu hide (wtf...)
    }
    //destroy the menu
    menu_destroy(g_vote_menu);
}
__________________
Develop ZP 4.3 Tear Devil
NullWarez is offline
LockdowN™
Junior Member
Join Date: Sep 2010
Location: Turkey
Old 09-03-2010 , 11:27   Re: [ZP] : Lighting Vote
Reply With Quote #29

Turkish Translate :

Code:
[tr]
VOTE_QUESTION = Harita Aydinlatmasini Secin :
VOTE_NIGHT = Gece
VOTE_EVENING = Aksam
VOTE_TWILIGHT = Alacakaranlik
VOTE_RESULT = %s oy %s
RESULT_NIGHT = Secilen aydinlatma : Gece
RESULT_EVENING = Secilen aydinlatma : Aksam
RESULT_TWILIGHT = Secilen aydinlatma : Alacakaranlik
Thank you very much
LockdowN™ is offline
Send a message via MSN to LockdowN™
ErrorStereotype
Senior Member
Join Date: Feb 2011
Location: Bosnia and Herzegovina
Old 03-09-2011 , 11:48   Re: [ZP] : Lighting Vote
Reply With Quote #30

Serbian translate

Quote:
[sr]
VOTE_QUESTION = Izaberite osvjetljenje :
VOTE_NIGHT = Svijetlo
VOTE_EVENING = Mracno
VOTE_TWILIGHT = Premracno
VOTE_RESULT = %s je glasao za %s
RESULT_NIGHT = Izabrano osvetljenje : Svijetlo
RESULT_EVENING = Izabrano osvetljenje : Mracno
RESULT_TWILIGHT = Izabrano osvetljenje : Premracno
ErrorStereotype 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 02:34.


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