Witam
Postanowiłem napisać posta, w którym są zawarte wszystkie dotychczasowe dodane pluginy w całym temacie, nie licząc pierwszego posta kolegi @Seba.
1. Gdy TT podniesie broń od CT To nie ma jej w następnej rundzie.
By naven~
Kod php:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#define PLUGIN "Czysc bronie"
#define VERSION "1.0"
#define AUTHOR "naven"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "runda", 1);
}
public runda(id){
strip_user_weapons(id)
give_item(id,"weapon_knife")
}
2. Usuwa strefy kupowania broni.
By VEN
Kod php:
/* AMX Mod X
* Buyzone Range
*
* (c) Copyright 2006 by VEN
*
* This file is provided as is (no warranties)
*
* DESCRIPTION
* Plugin allows to set buyzone range: everywhere/nowhere/default
* Note: AMX Mod X v1.75+ required
*
* CVARs
* bz_range (0: Nowhere, 1: Default, 2: Everywhere, default: 1)
* Note: CVAR change is accepted every new round and player spawn
*/
#include <amxmodx>
#include <fakemeta>
// plugin's main information
#define PLUGIN_NAME "Buyzone Range"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "VEN"
// OPTIONS BELOW
// CVAR name and its default value
#define CVAR_NAME "bz_range"
#define CVAR_DEF "1"
// uncomment to disable automatic 32/64bit processor detection
// possible values is <0: 32bit | 1: 64bit>
//#define PROCESSOR_TYPE 0
// OPTIONS ABOVE
// mapzone player's private data offset
#define OFFSET_32BIT 235
#define OFFSET_64BIT 268
// offset's linux difference
#define OFFSET_LINUX_DIFF 5
// buyzone bit
#define BIT_BUYZONE (1<<0)
// determination of actual offsets
#if !defined PROCESSOR_TYPE // is automatic 32/64bit processor detection?
#if cellbits == 32 // is the size of a cell 32 bits?
// then considering processor as 32 bit
#define OFFSET OFFSET_32BIT
#else // in other case considering the size of a cell as 64 bits
// and then considering processor as 64 bit
#define OFFSET OFFSET_64BIT
#endif
#else // processor type is specified by PROCESSOR_TYPE define
#if PROCESSOR_TYPE == 0 // 32bit processor defined
#define OFFSET OFFSET_32BIT
#else // considering that defined 64bit processor
#define OFFSET OFFSET_64BIT
#endif
#endif
// get/set mapzone bits
#define CS_GET_USER_MAPZONES(%1) get_pdata_int(%1, OFFSET, OFFSET_LINUX_DIFF)
#define CS_SET_USER_MAPZONES(%1,%2) set_pdata_int(%1, OFFSET, %2, OFFSET_LINUX_DIFF)
// fake buyzone absmin and absmax
new Float:g_buyzone_min[3] = {-8192.0, -8192.0, -8192.0}
new Float:g_buyzone_max[3] = {-8191.0, -8191.0, -8191.0}
new g_buyzone
new g_pcvar
new bool:g_enabled
new g_bit
new bool:g_new_round
new g_maxplayers
#define MAX_PLAYERS 32
new bool:g_alive[MAX_PLAYERS + 1]
new g_msgid_icon
new g_icon_name[] = "buyzone"
#define ICON_R 0
#define ICON_G 160
#define ICON_B 0
public plugin_init() {
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
g_pcvar = register_cvar(CVAR_NAME, CVAR_DEF)
register_clcmd("buy", "menu_block")
register_clcmd("buyequip", "menu_block")
register_clcmd("fullupdate", "clcmd_fullupdate")
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
register_event("ResetHUD", "event_player_alive", "be")
register_event("Health", "event_player_dead", "bd", "1=0")
register_forward(FM_PlayerPostThink, "forward_player_postthink")
g_msgid_icon = get_user_msgid("StatusIcon")
register_message(g_msgid_icon, "message_status_icon")
g_maxplayers = get_maxplayers()
g_buyzone = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "func_buyzone"))
dllfunc(DLLFunc_Spawn, g_buyzone)
engfunc(EngFunc_SetSize, g_buyzone, g_buyzone_min, g_buyzone_max)
update_state_vars()
}
public forward_player_postthink(id) {
if (g_alive[id] && g_enabled) {
switch (g_bit) {
case BIT_BUYZONE: dllfunc(DLLFunc_Touch, g_buyzone, id)
default: CS_SET_USER_MAPZONES(id, CS_GET_USER_MAPZONES(id) & ~BIT_BUYZONE)
}
}
}
public event_new_round() {
g_new_round = true
set_task(0.1, "task_unset_var")
update_state_vars()
}
public task_unset_var() {
g_new_round = false
}
public event_player_alive(id) {
g_alive[id] = true
if (g_new_round) {
if (g_enabled)
draw_buyzone_icon(id, g_bit)
}
else {
update_state_vars()
if (g_enabled) {
for (new i = 1; i <= g_maxplayers; ++i) {
if (g_alive[i])
draw_buyzone_icon(i, g_bit)
}
}
}
}
public event_player_dead(id) {
g_alive[id] = false
}
public client_disconnect(id) {
g_alive[id] = false
}
public message_status_icon(msg_id, msg_dest, id) {
if (!g_alive[id] || !g_enabled)
return PLUGIN_CONTINUE
new icon[8]
get_msg_arg_string(2, icon, 7)
if (equal(icon, g_icon_name))
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
public menu_block(id) {
if (g_alive[id] && g_enabled && !g_bit)
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
public clcmd_fullupdate() {
return PLUGIN_HANDLED
}
update_state_vars() {
new cvar_value = get_pcvar_num(g_pcvar)
g_enabled = true
switch (cvar_value) {
case 0: g_bit = 0
case 1: g_enabled = false
default: g_bit = BIT_BUYZONE
}
}
draw_buyzone_icon(id, draw) {
message_begin(MSG_ONE, g_msgid_icon, _, id)
write_byte(draw)
write_string(g_icon_name)
if (draw) {
write_byte(ICON_R)
write_byte(ICON_G)
write_byte(ICON_B)
}
message_end()
}
3. Menu broni na spawnie.
By naven~
Kod php:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "menu broni na spawnie"
#define VERSION "1.0"
#define AUTHOR "naven"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "runda", 1);
}
public runda(id){
set_task(0.1, "menu", id)
}
public menu(id)
{
if (cs_get_user_team(id) == CS_TEAM_T)
{
new menu = menu_create("\yMenu broni","wybor_menu")
menu_additem(menu,"\wak47+ dgl + kamizelka i helm","1",0)
menu_additem(menu,"\wwm4a1+ dgl + kamizelka i helm","2",0)
menu_additem(menu,"\wTMP+ dgl + kamizelka i helm ","3",0)
menu_additem(menu,"\wMAC10+ dgl + kamizelka i helm ","4",0)
menu_additem(menu,"\wXM1014+ dgl + kamizelka i helm ","5",0)
menu_additem(menu,"\wSG552+ dgl + kamizelka i helm ","6",0)
menu_additem(menu,"\wAWP+ dgl + kamizelka i helm ","7",0)
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
}
public wybor_menu(id,menu,item)
{
if(item==MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data)
switch(key)
{
case 2 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_m4a1")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "item_kevlar")
}
case 1 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_ak47")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "item_kevlar")
}
case 3 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_tmp")
give_item(id, "ammo_9mm")
give_item(id, "ammo_9mm")
give_item(id, "ammo_9mm")
give_item(id, "ammo_9mm")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_kevlar")
}
case 4 :{
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_mac10")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_45acp")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_kevlar")
}
case 5 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_xm1014")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_kevlar")
}
case 6 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_sg552")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_kevlar")
}
case 7 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_awp")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_kevlar")
}
}
return PLUGIN_HANDLED
}
/*
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_kevlar")
*/
4. Nie pokazuje gdy terrorysta zabije antyterrorystę.
ConnorMcLeod
Kod php:
#include <amxmodx>
#include <cstrike>
#define VERSION "0.0.2"
#define IsPlayer(%1) ( 1 <= %1 <= g_iMaxPlayers )
new g_iMaxPlayers
public plugin_init()
{
register_plugin("Jail Hide Ts Kills", VERSION, "ConnorMcLeod")
register_message(get_user_msgid("DeathMsg"), "Message_DeathMsg")
g_iMaxPlayers = get_maxplayers()
}
public Message_DeathMsg()
{
new iKiller = get_msg_arg_int(1)
if( IsPlayer(iKiller) && cs_get_user_team(iKiller) == CS_TEAM_T )
{
set_msg_arg_int(1, ARG_BYTE, get_msg_arg_int(2))
}
}
5. Dla terrorystów tylko nóż, dla CT m4a1 oraz deagle.
ConnorMcLeod
Kod php:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#define VERSION "0.0.1"
#define OFFSET_PRIMARYWEAPON 116
public plugin_init()
{
register_plugin("Jail Give Weapons", VERSION, "ConnorMcLeod")
RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
}
public Player_Spawn_Post( id )
{
if( is_user_alive(id) )
{
strip_user_weapons(id)
set_pdata_int(id, OFFSET_PRIMARYWEAPON, 0)
give_item(id, "weapon_knife")
if( cs_get_user_team(id) == CS_TEAM_CT )
{
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 35)
give_item(id, "weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 90)
}
}
}
6. Tylko CT może mówić.
By ConnorMcLeod
Kod php:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>
#define PLUGIN "Jail Voices"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.3"
new const g_iSpeakSettings[] = {
SPEAK_NORMAL,
SPEAK_MUTED|SPEAK_LISTENALL,
SPEAK_ALL|SPEAK_LISTENALL,
SPEAK_NORMAL
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "Player_Spawn_Post", 1)
}
public Player_Spawn_Post( id )
{
set_speak(id, g_iSpeakSettings[ _:cs_get_user_team(id) ] )
}
7. JailBreak Shop/JBShop.
By naven~, By fiodor7 and By Jankoxd
Podaję link do AMXX gdyż SMA nie kompiluje się ponieważ potrzeba colorchat.inl
SMA Poniżej.
Kod php:
/* Plugin by naven, by fiodor7 and Jankoxd */
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#define PLUGIN "JailBreak Shop"
#define VERSION "1.1"
#define AUTHOR "naven"
new name [32];
new speed[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /jbshop", "jbshop")
register_event( "CurWeapon", "Event_Change_Weapon", "be", "1=1" );
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
}
public jbshop(id){
new menu = menu_create("\yJailBreak Shopmenu","menu")
menu_additem(menu,"\wCiche buty 5000$","1",0)
menu_additem(menu,"\wSzybkie buty 16000$","2",0)
menu_additem(menu,"\wSprezynowe buty 7000$","3",0)
menu_additem(menu,"\wPaczka granatow 5000$","4",0)
menu_additem(menu,"\wWzmacniacz 5000$","5",0)
menu_additem(menu,"\wPrzenikanie przez sciany 5000$","6",0)
menu_additem(menu,"\wNiesmiertelnosc przez 5 sekund 16000$","7",ADMIN_KICK)
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
public menu(id, menu, item){
if(item==MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED;
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1 :{
set_user_footsteps(id, 1)
}
case 2 :{
if (cs_get_user_money(id) < 16000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 16000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil szybkie buty", name)
speed[id] = 1;
set_user_maxspeed(id, 500.0)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 3 : {
if (cs_get_user_money(id) < 7000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 7000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil sprezynowe buty", name)
set_user_gravity(id, 0.5)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 4 : {
if (cs_get_user_money(id) < 5000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 5000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil paczke granatow", name)
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 5 :{
if (cs_get_user_money(id) < 5000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 5000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil wzmacniacz", name)
set_user_armor(id, 200)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 6 :{
if (cs_get_user_money(id) < 5000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 5000 ){
get_user_name(id, name, 31)
set_user_noclip(id, 1)
ColorChat(0, GREEN, "%s ^x03kupil noclip na 3 sekundy", name)
set_task(3.0, "clipoff", id)
cs_set_user_money(id , cs_get_user_money(id) - 5000, 0)
}
}
case 7 :{
if (cs_get_user_money(id) < 16000){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03nie stac cie na to!", name)
return PLUGIN_HANDLED;
}
if (!is_user_alive(id)){
get_user_name(id, name, 31)
ColorChat(id, GREEN, "%s ^x03musisz zyc mozgu!", name)
return PLUGIN_HANDLED;
}
if (cs_get_user_money(id) >= 16000 ){
get_user_name(id, name, 31)
ColorChat(0, GREEN, "%s ^x03kupil godmode dla admina na 5 sekund!", name)
set_user_godmode(id, 1)
set_task(5.0, "godoff", id)
cs_set_user_money(id , cs_get_user_money(id) - 16000, 0)
}
}
}
return PLUGIN_HANDLED;
}
public Event_Change_Weapon(id){
if(speed[id] == 1){
set_user_maxspeed(id, 500.0)
}
}
public Fwd_PlayerSpawn_Post(id){
if (is_user_alive(id)){
if(!speed[id]){
speed[id] = 0;
}
}
set_user_footsteps(id, 0)
}
public clipoff(id)
{
set_user_noclip(id)
}
public godoff(id)
{
set_user_godmode(id)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
8. Po 30 sekundach cele otwierają się same.
By Sn!ff3r
Kod php:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#define PLUGIN "JailBreak: Open Jails"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
//new rocks
//new bool:opened
//new bool:voted[33]
//new Float:roundstart
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")
//register_event("HLTV", "new_round", "a", "1=0", "2=0")
//register_event("DeathMsg", "client_death", "a")
//register_logevent("round_start", 2, "1=Round_Start")
}
public Nowa_Runda(id){
set_task(30.0, "force_open")
}
/*public round_start()
{
roundstart = get_gametime()
}
public client_death()
{
static victim
victim = read_data(1)
if(get_user_team(victim) == 1 && voted[victim])
{
voted[victim] = false
}
}*/
public force_open()
{
new ent = -1
while((ent = fm_find_ent_by_class(ent, "func_door")))
{
dllfunc(DLLFunc_Use, ent, 0)
}
}
/*
public client_disconnect(id)
{
if(voted[id]) voted[id] = false
}
public new_round()
{
static players[32], inum, i
get_players(players, inum)
for (i = 0; i < inum; i++)
{
voted[players[i]] = false
}
rocks = 0
opened = false
}
public client_say_cele(id)
{
if(!is_user_alive(id))
{
client_print(id,print_chat,"Jak chcesz wyjsc skoro nie zyjesz?")
return PLUGIN_HANDLED
}
static needed, Float:nowtime
needed = needed_votes()
nowtime = get_gametime()
if(nowtime - roundstart < 30.0)
{
client_print(id,print_chat,"Za wczesnie, czekaj na straznikow!")
return PLUGIN_HANDLED
}
if(opened)
{
client_print(id,print_chat,"Cele juz zostaly otwarte")
return PLUGIN_HANDLED
}
if(!voted[id])
{
rocks++
voted[id] = true
if(rocks >= needed)
{
force_open()
client_print(id,print_chat,"Wiezniowie sie zbuntowali i otworzyli cele!")
opened = true
return PLUGIN_HANDLED
}
client_print(id,print_chat,"Oky... niech Twoi kumple jeszcze wpisza (potrzeba jeszcze %d glosow)",needed - rocks)
}
else
{
client_print(id,print_chat,"Juz glosowales na otworzenie celi (potrzeba jeszcze %d glosow) !",needed - rocks)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
stock needed_votes()
{
return floatround(float(active_players()) * 0.8 + 0.49)
}
stock active_players()
{
new players[32], inum, i, active = 0
get_players(players, inum, "h")
for (i = 0; i < inum; ++i)
{
if(get_user_team(players[i]) == 1 && is_user_alive(players[i]))
active++
}
return active
}
*/
Wszyściutko pięknie się kompiluje i HULA jak należy. Mam nadzieję, że pomogłem chociaż jednej osobie i nie musi ona przeszukiwać od początku całego tematu, mimo iż nie jest to takie straszne.
Pozdrawiam
Szyfrant