Jump to content


Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Posted Image Posted Image

Guest Message by DevFuse
 

Usuniec pewnej rzeczy z kodu

Modyfikacja

  • You cannot start a new topic
  • You cannot reply to this topic
3 replies to this topic

#1 'eXe'

    Profesjonalista

  • Zbanowany

  • Reputacja: 9
    Nowy

  • Postów:164
  • GG:
  • Imię:PatryQ
  • Lokalizacja:Czeladz
Offline

Posted 26.11.2011 19:24

Witam,

Poniżej jest sma., plugin który pokazuje ile rund od zmiany mapy i, że nie da się podłożyć paki na B jeżeli jest mniej niż 5 w ct:

#include
#include
#include
#include
#include

#define PLUGIN "Restart po 20"
#define VERSION "1.0"
#define AUTHOR "ExBiT"
#define MAXBSNUM 10

new g_msg_statusicon
new BsList[MAXBSNUM], num

new runda = 0

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")

    g_msg_statusicon = get_user_msgid("StatusIcon")
    register_message(g_msg_statusicon, "Check_Icon")
    
    set_task(1.0, "check_bs")
}

public Nowa_Runda()
{
    runda++
    new rund = 20 - runda
    ColorChat(0, TEAM_COLOR, "^x01[^x03Strajk-Zone.eu^x01] Restart mapy za ^x04%d ^x01rund", rund)
    if (runda >= 20)
    {
        set_task(1.5, "zmiana", _, _, _, "a", 1)
    }
}

public zmiana()
{
    set_cvar_num("sv_restartround", 1);
}

public check_bs()
{
    num = 0
    new ent = -1
    while ((ent = find_ent_by_class(ent, "func_bomb_target")))
        BsList[num++] = ent
}

public  bomb_planting(id)
{
    if (count_ct()
Proszę o usunięcie kawałka pluginu ( o rundach ile zostalo do konca i restart mapy.)

Edited by 'eXe', 26.11.2011 19:25.


#2 CzarnaDupa

    Najgorszy z najgorszych >.<

  • Użytkownik

  • Reputacja: 83
    Zaawansowany

  • Postów:268
  • GG:
  • Imię:Michał
  • Lokalizacja:Mielec
Offline

Posted 29.11.2011 03:12

Dodałeś to troche tak syfiarsko no ale masz ....


#include
#include
#include
#include
#include

#define PLUGIN "Restart po 20"
#define VERSION "1.0"
#define AUTHOR "ExBiT"
#define MAXBSNUM 10

new g_msg_statusicon
new BsList[MAXBSNUM], num

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)

	g_msg_statusicon = get_user_msgid("StatusIcon")
	register_message(g_msg_statusicon, "Check_Icon")
	
	set_task(1.0, "check_bs")
}

public check_bs()
{
	num = 0
	new ent = -1
	while ((ent = find_ent_by_class(ent, "func_bomb_target")))
		BsList[num++] = ent
}

public  bomb_planting(id)
{
	if (count_ct()

Edited by CipiS, 29.11.2011 03:14.

  • +
  • -
  • 0

#3 'eXe'

    Profesjonalista

  • Autor tematu
  • Zbanowany

  • Reputacja: 9
    Nowy

  • Postów:164
  • GG:
  • Imię:PatryQ
  • Lokalizacja:Czeladz
Offline

Posted 29.11.2011 15:03

<p><p>

Dodałeś to troche tak syfiarsko no ale masz ....


#include
#include
#include
#include
#include

#define PLUGIN "Restart po 20"
#define VERSION "1.0"
#define AUTHOR "ExBiT"
#define MAXBSNUM 10

new g_msg_statusicon
new BsList[MAXBSNUM], num

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    g_msg_statusicon = get_user_msgid("StatusIcon")
    register_message(g_msg_statusicon, "Check_Icon")
    
    set_task(1.0, "check_bs")
}

public check_bs()
{
    num = 0
    new ent = -1
    while ((ent = find_ent_by_class(ent, "func_bomb_target")))
        BsList[num++] = ent
}

public  bomb_planting(id)
{
    if (count_ct()


Nie da się skompilować, przepraszam, ale ten wcześniejszy kod był nie pełny:
#include #include #include #include #include #define PLUGIN "Restart po 20"#define VERSION "1.0"#define AUTHOR "ExBiT"#define MAXBSNUM 10new g_msg_statusiconnew BsList[MAXBSNUM], numnew runda = 0public plugin_init(){    register_plugin(PLUGIN, VERSION, AUTHOR)    register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")    g_msg_statusicon = get_user_msgid("StatusIcon")    register_message(g_msg_statusicon, "Check_Icon")        set_task(1.0, "check_bs")}public Nowa_Runda(){    runda++    new rund = 20 - runda    ColorChat(0, TEAM_COLOR, "^x01[^x03Strajk-Zone.eu^x01] Restart mapy za ^x04%d ^x01rund", rund)    if (runda >= 20)    {        set_task(1.5, "zmiana", _, _, _, "a", 1)    }}public zmiana(){    set_cvar_num("sv_restartround", 1);}public check_bs(){    num = 0    new ent = -1    while ((ent = find_ent_by_class(ent, "func_bomb_target")))        BsList[num++] = ent}public  bomb_planting(id) {    if (count_ct()

Na tym forum jakieś dziwne rzeczy mi się dzieją.. normalnie dodaje a jak dodaj post to sie wszystko zlewa..
MarWit (29.11.2011 15:07):
Wstaw w odpowiednie tagi (
 i 
) bądz daj kod to załącznika.

Edited by 'eXe', 29.11.2011 15:06.


#4 DarkGL

    Nie oddam ciasteczka !

  • Administrator

  • Reputacja: 6,555
    Godlike

  • Postów:11,988
  • GG:
  • Steam:steam
  • Imię:Rafał
  • Lokalizacja:Warszawa
Online

Posted 29.11.2011 16:11

wrzuć kod w załączniku
  • +
  • -
  • 0




  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Coinsy CSGOPolygon Za SMS, PSC , Przelew - CoinSell.pro
Skiny do CS:GO za SMS, PSC, Przelew - CSGOPaka.com
Automatyczny Bot Levelowania Steam - LVLUPSteam.com
CSGO Gambling Sites and Free Betting Codes - DreamCodes.gg

Sign In