User
Pass
2FA
 
 

Eroare plugin.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message1209
z3pter

[Mentally Stable]



Status: Offline
(since 05-07-2012 13:14)
Joined: 04 May 2009
Posts: 46, Topics: 13
Location: Romania

Reputation: 162
Votes: 5

Post Posted: 06-01-2012, 11:58:03 | Translate post to: ... (Click for more languages)

Salut tuturor am nevoie de ajutor cu acest plugin da eroare... -

* Ultimtate KillStreak Advanced BETA */

#include <amxmodx>
#include <amxmisc>
#include <csx>

#define PLUGIN "Ultimate KillStreak Advanced BETA"
#define VERSION "0.7beta"
#define AUTHOR "SAMURAI"


/*#define TASK_CLEAR_KILL 100*/
#define LEVELS 16
/*new kill[33][24];*/
new kills[33] = {0,...};
new deaths[33] = {0,...};

new hsenable, knifeenable, firstbloodenable, nadecvar, suicidecvar, /*cvardouble,*/ rnstartcvar, killstreaktype;
new firstblood;

new hsmessages[][] =
{
"%s Ia zburat capul lui %s !!",
"%s A nimerit dovleacul lui %s !",
"%s Ia folosit capul lui %s pe post de Minge!",
"%s la doborat pe %s cu un headshot Superb !"
};
new hslist[][] =
{
"ultimate_sounds/headshot2_ultimate"
};


new knmessages[][] =
{
"%s La feliat pe %s",
"%s La facut snitel pe %s",
"%s La umulit pe %s"
};
new knlist[][] =
{
"ultimate_sounds/knife2_ultimate"
};


new fbmessages[][] =
{
"%s : First Blood !",
"%s Drew First Blood !!!",
"%s First Shot on tha Mark !"
};
new fblist[][] =
{
"ultimate_sounds/firstblood1_ultimate"
};


new nademessages[][] =
{
"%s ia trimis un cadou lui %s",
"%s a aruncat cu precizie catre %s",
"%s este un bun grenadier ! cred ca sa intors de la razboi ..."
};

/* not used!
new nadelist[][] =
{
"ultimate_sounds/nade_ultimate"
};
*/

new suicidemess[][] =
{
"%s knows how the kill command works!",
"%sprefera sa se sinucida...decat sa moara pe campul de lupta"
};
new suicidelist[][] =
{
"ultimate_sounds/suicide2_ultimate"
};

/*
new doublelist[][] =
{
"Next/doublekill1_ultimate"
};*/


new levels[12] = {2, 3, 4, 5, 6, 8,10,12,14,16};

new sounds[12][] =
{
"ultimate_sounds/doublekill1_ultimate",
"ultimate_sounds/triplekill_ultimate",
"ultimate_sounds/multikill_ultimate",
"ultimate_sounds/ultrakill_ultimate",
"ultimate_sounds/killingspree_ultimate",
"ultimate_sounds/megakill_ultimate",
"ultimate_sounds/holyshit_ultimate",
"ultimate_sounds/ludicrouskill_ultimate",
"ultimate_sounds/rampage_ultimate",
"ultimate_sounds/unstoppable_ultimate",
"ultimate_sounds/monsterkill_ultimate",
"qs/whickedsick"
};

new messages[12][] =
{
"%s: Double kill !",
"%s: Triple Kill !",
"%s: Multi Kill !",
"%s: Ultra Kill !",
"%s: Killing Spree !",
"%s: Mega Kill !",
"%s: Holy Shit !",
"%s: Ludicrous Kill !",
"%s: Rampage !",
"%s: Unstoppable !",
"%s: M o n s t e R K i L L ! ! !",
"%s: Whickedsick !"
};


new preplist[][] =
{
"ultimate_sounds/prepare2_ultimate"
};


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

register_event("ResetHUD", "reset_hud", "b");
register_event("HLTV","rnstart","a", "1=0", "2=0");
killstreaktype = register_cvar("ut_killstreak_advanced", "3");
hsenable = register_cvar("ut_killstreak_hs","1");
knifeenable = register_cvar("ut_killstreak_knife","1");
firstbloodenable = register_cvar("ut_firstblood","1");
nadecvar = register_cvar("ut_nade_events","1");
suicidecvar = register_cvar("ut_suicide_events","1");
/*cvardouble = register_cvar("ut_doublekill_events","1");*/
rnstartcvar = register_cvar("ut_roundcout_sounds","1");

}


public client_death(killer,victim,weapon,hitplace,TK)
{
if(!killer || !victim)
return;

static kname[32], vname[32];
get_user_name(killer,kname,31);
get_user_name(victim,vname,31);

if(hitplace == HIT_HEAD && get_pcvar_num(hsenable) == 1 )
{
set_hudmessage(0, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0, hsmessages[random(sizeof hsmessages)], kname, vname);
client_cmd(0,"spk %s",hslist[random(sizeof hslist)]);
}

if(weapon == CSW_KNIFE && get_pcvar_num(knifeenable) == 1 )
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0, knmessages[random(sizeof knmessages)], kname, vname);
client_cmd(0,"spk %s",knlist[random(sizeof knlist)]);
}

if(firstblood && killer != victim && get_pcvar_num(firstbloodenable) ==1)
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0, fbmessages[random(sizeof fbmessages)], kname);
client_cmd(0,"spk %s",fblist[random(sizeof fblist)]);
}

if(weapon == CSW_HEGRENADE && get_pcvar_num(nadecvar) == 1)
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0,nademessages[random(sizeof nademessages)],kname,vname);
client_cmd(0,"spk ultimate_sounds/nade_ultimate");
}

if(killer == victim && get_pcvar_num(suicidecvar) ==1)
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0,suicidemess[random(sizeof suicidemess)], vname);
client_cmd(0,"spk %s",suicidelist[random(sizeof suicidelist)]);
}


/*if(kill[killer][0] && equal(kill[killer],weapon) && killer != victim && get_pcvar_num(cvardouble) == 1)
{
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0,"Wow %s made a double kill", kname);
kill[killer][0] = 0;
client_cmd(0,"spk %s",doublelist[random(sizeof doublelist)]);
}
else
{
kill[killer] = weapon;
set_task(0.1,"clear_kill",TASK_CLEAR_KILL+killer);
}*/


kills[killer] += 1;
kills[victim] = 0;
deaths[killer] = 0;
deaths[victim] += 1;

for (new i = 0; i < LEVELS; i++)
{
if (kills[killer] == levels[i])
{
announce(killer, i);
return;
}
}


}


announce(killer, level)
{

static name[33];
new r = random(256);
new g = random(256);
new b = random(256);

get_user_name(killer, name, 32);

set_hudmessage(r,g,b, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2);

if( (get_pcvar_num(killstreaktype) <= 0 ) || get_pcvar_num(killstreaktype) > 3)
return 0;

switch(get_pcvar_num(killstreaktype))
{
case 1:
{
show_hudmessage(0, messages[level], name);
return 0;
}

case 2:
{
client_cmd(0, "spk %s", sounds[level]);
return 0;
}

case 3:
{
show_hudmessage(0, messages[level], name);
client_cmd(0, "spk %s", sounds[level]);
return 0;
}
}

return 0;

}


public reset_hud(id)
{
firstblood = 1;
if (is_mode_set(16))
if (kills[id] > levels[0])
client_print(id, print_chat, "* Ucigasule ai macelarit %d la rand.", kills[id]);
else if (deaths[id] > 1)
client_print(id, print_chat, "* Ai grija ai murit de %d ori la rand.", deaths[id]);


}

public rnstart(id)
{
if(get_pcvar_num(rnstartcvar) == 1)
{
firstblood = 1;
set_hudmessage(255, 0, 255, -1.0, 0.30, 0, 6.0, 6.0);
show_hudmessage(0, "Pregatiti-va de Lupta!");

client_cmd(0,"spk %s",preplist[random(sizeof preplist)]);
}
}

public client_connect(id)
{
kills[id] = 0;
deaths[id] = 0;
}

/*public clear_kill(taskid)
{
new id = taskid-TASK_CLEAR_KILL;
kill[id][0] = 0;
}*/

is_mode_set(bits)
{
new mode[9];
get_cvar_string("ut_killstreak_advanced", mode, 8);
return read_flags(mode) & bits;
}

public plugin_precache()
{
precache_sound("ultimate_sounds/triplekill_ultimate.wav");
precache_sound("ultimate_sounds/multikill_ultimate.wav");
precache_sound("ultimate_sounds/ultrakill_ultimate.wav");
precache_sound("ultimate_sounds/killingspree_ultimate.wav");
precache_sound("ultimate_sounds/megakill_ultimate.wav");
precache_sound("ultimate_sounds/holyshit_ultimate.wav");
precache_sound("ultimate_sounds/ludicrouskill_ultimate.wav");
precache_sound("ultimate_sounds/rampage_ultimate.wav");
precache_sound("ultimate_sounds/unstoppable_ultimate.wav");
precache_sound("ultimate_sounds/monsterkill_ultimate.wav");
precache_sound("ultimate_sounds/headshot2_ultimate.wav");
precache_sound("ultimate_sounds/knife2_ultimate.wav");
precache_sound("ultimate_sounds/firstblood1_ultimate.wav");
precache_sound("ultimate_sounds/prepare2_ultimate.wav");
precache_sound("ultimate_sounds/nade_ultimate.wav");
precache_sound("ultimate_sounds/suicide2_ultimate.wav");
precache_sound("ultimate_sounds/doublekill1_ultimate.wav");
precache_sound("qs/whickedsick.wav");
}

asta e eroarea


L 01/06/2012 - 09:11:23: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:11:33: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:11:33: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:11:33: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:12:02: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:12:02: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:12:02: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:12:36: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:12:36: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:12:36: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:12:43: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:12:43: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:12:43: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:12:47: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:12:47: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:12:47: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:12:51: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:12:51: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:12:51: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:13:04: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:13:04: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:13:04: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:13:04: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:13:04: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:13:04: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:13:07: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:13:07: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:13:07: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:13:20: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:13:20: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:13:20: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)
L 01/06/2012 - 09:13:35: [AMXX] Displaying debug trace (plugin "ut_killstreak_adv.amxx")
L 01/06/2012 - 09:13:35: [AMXX] Run time error 4: index out of bounds
L 01/06/2012 - 09:13:35: [AMXX] [0] g2p7n333.sma.p::client_death (line 213)

0 0
  
Back to top
View user's profile Send private message
Ciurii[:x]

[Bulã]



Status: Offline
(since 07-07-2013 08:20)
Joined: 10 Feb 2010
Posts: 3312, Topics: 130
Location: Baia Mare

Reputation: 98.2
Votes: 22

 
Post Posted: 09-01-2012, 12:11:07 | Translate post to: ... (Click for more languages)

Tu vrei sa scapi de eroarea asta din log sau nu merge sa faci plugin .amxx ?
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
ExtraPowerdJ

[Mentally Stable]



Status: Offline
(since 25-03-2012 21:21)
Joined: 12 Apr 2011
Posts: 30, Topics: 12
Location: Romania

Reputation: -69.4
Votes: 5

Post Posted: 18-03-2012, 18:57:52 | Translate post to: ... (Click for more languages)

Vrea sa scape -
0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore




 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 17-01-2025, 22:50:52
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x