Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » Counter-Strike » Plugins » Plugins [REAPI] » “Poll | polls on the server” plugin for CS 1.6

“Poll | polls on the server” plugin for CS 1.6

28.06.2019, 18:03SokratViews: 1 547Comments: 0
“Poll | polls on the server” plugin for CS 1.6

About this content

The Poll plugin lets you create any number of polls on your CS 1.6 server, and you can use them for any purpose, from silly questions like who’s cooler, T or CT, to serious polls about changes to your server. There is also protection against players who have spent too little time on the server; such players will not be able to participate in a poll.

The plugin is written in ReAPI and works with the MySQL database and the CSstatsX SQL module, so installing it takes a bit of effort, but it’s worth it.


Requirements:

AmxModX 1.9.0
ReAPI
CSstatsX SQL


Settings:
#define MYSQL_HOSTNAME    "localhost" // адрес сервера mysql
#define MYSQL_USERNAME    "root" // логин пользователя mysql
#define MYSQL_PASSWORD    "" // пароль пользователя mysql
#define MYSQL_DATABASE    "up" // название базы данных
#define MYSQL_TABLE        "table_name" // название таблицы в бд

#define MAX_MENU_SIZE            512        // Максимальный размер меню
#define MAX_ITEM_LENGHT            200     // Максимальный длинна пункта меню
#define MAX_POLLS                5        // Максимальное количество опросов
#define MAX_NICKNAME_LENGHT        30         // Максимальная длинна никнейма
#define MAX_STEAM_ID_LENGHT        35         // Максимальная длинна стим ид
#define MAX_MAP_LENGHT            30         // Максимальная длинна названия карты
#define MIN_USER_GAME_TIME        3600    // Минимальное время нахождения игрока на сервере(в секундах)


Installation:

Manually create a table in your database:
CREATE TABLE table_name( id int(11) auto_increment primary key, nickname varchar(30) not null, steam_id varchar(35) not null, question varchar(200) not null, answer varchar(200) not null, next_poll_id int(2) not null, map varchar(30) not null ) 

Here, "table_name" is the table name; you can name it whatever you like.



All polls are configured in the file poll.ini

Author:  Nunfy
Version:  1.1 


poll.zip3.61 Kb · Downloads: 56



Similar content

Comments (0)

Add comment

Leave a comment

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password