[ROZWIĄZANE] Perki..
kolomolo 12.12.2011
proszę o podanie DZIAŁAJĄCYCH perkow:
Tajemnica Hajta-1/1 z he
Fart Gogusia - 1/4 z deagla
Bron Amadeusza - dostajesz mp5 i dodatkowo 15 dmg z niego
Bron Smierci - dostajesz AUG i 1/10 z niego
Pilne proszę .
Tajemnica Hajta-1/1 z he
Fart Gogusia - 1/4 z deagla
Bron Amadeusza - dostajesz mp5 i dodatkowo 15 dmg z niego
Bron Smierci - dostajesz AUG i 1/10 z niego
Pilne proszę .
System'ek 12.12.2011
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <codmod>
#define DMG_BULLET (1<<1)
new const perk_name[] = "Fart Deagla";
new const perk_desc[] = "Masz 1/4 szansy na natychmiastowe zabicie z Deagla";
new bool:ma_perk[33];
public plugin_init()
{
register_plugin(perk_name, "1.0", "System");
cod_register_perk(perk_name, perk_desc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_perk_enabled(id)
{
cod_give_weapon(id, CSW_DEAGLE);
ma_perk[id] = true;
}
public cod_perk_disabled(id)
{
cod_take_weapon(id, CSW_DEAGLE);
ma_perk[id] = false;
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_perk[idattacker])
return HAM_IGNORED;
if(random(4))
return HAM_IGNORED;
if(get_user_team(this) == get_user_team(idattacker))
return HAM_IGNORED;
if(get_user_weapon(idattacker) != CSW_DEAGLE)
return HAM_IGNORED;
if(!(damagebits & DMG_BULLET))
return HAM_IGNORED;
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <codmod>
#define DMG_BULLET (1<<1)
new const perk_name[] = "Bron Amadeusza";
new const perk_desc[] = "Dostajesz dostajesz mp5 i dodatkowo 15 dmg z niego";
new bool:ma_perk[33];
public plugin_init()
{
register_plugin(perk_name, "1.0", "System");
cod_register_perk(perk_name, perk_desc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_perk_enabled(id)
{
cod_give_weapon(id, CSW_MP5NAVY);
ma_perk[id] = true;
}
public cod_perk_disabled(id)
{
cod_take_weapon(id, CSW_MP5NAVY);
ma_perk[id] = false;
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_perk[idattacker])
return HAM_IGNORED;
if(get_user_team(this) != get_user_team(idattacker) && get_user_weapon(idattacker) == CSW_MP5NAVY && damagebits & DMG_BULLET)
cod_inflict_damage(idattacker, this, 15.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <codmod>
#define DMG_BULLET (1<<1)
new const perk_name[] = "Bron Smierci";
new const perk_desc[] = "Masz 1/10 szansy na natychmiastowe zabicie z AUG";
new bool:ma_perk[33];
public plugin_init()
{
register_plugin(perk_name, "1.0", "System");
cod_register_perk(perk_name, perk_desc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_perk_enabled(id)
{
cod_give_weapon(id, CSW_AUG);
ma_perk[id] = true;
}
public cod_perk_disabled(id)
{
cod_take_weapon(id, CSW_AUG);
ma_perk[id] = false;
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_perk[idattacker])
return HAM_IGNORED;
if(random(10))
return HAM_IGNORED;
if(get_user_team(this) == get_user_team(idattacker))
return HAM_IGNORED;
if(get_user_weapon(idattacker) != CSW_DEAGLE)
return HAM_IGNORED;
if(!(damagebits & DMG_BULLET))
return HAM_IGNORED;
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <codmod>
#define DMG_HEGRENADE (1<<24)
new const perk_name[] = "Tajemnica Hajta";
new const perk_desc[] = "1/1 z he";
new bool:ma_perk[33];
public plugin_init()
{
register_plugin(perk_name, "1.0", "System");
cod_register_perk(perk_name, perk_desc);
RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
public cod_perk_enabled(id)
{
ma_perk[id] = true;
cod_give_weapon(id, CSW_HEGRENADE);
}
public cod_perk_disabled(id)
{
ma_perk[id] = false;
cod_take_weapon(id, CSW_HEGRENADE);
}
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
if(!ma_perk[idattacker])
return HAM_IGNORED;
if(random(1))
return HAM_IGNORED;
if(get_user_team(this) == get_user_team(idattacker))
return HAM_IGNORED;
if(get_user_weapon(idattacker) != CSW_DEAGLE)
return HAM_IGNORED;
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
return HAM_IGNORED;
}
Użytkownik System'ek edytował ten post 12.12.2011 15:34
kolomolo 12.12.2011
Fart Deagla mi nie dziala... wszystkie wgrywam wszystkie dzialaja tylko nie Fart Deagla i nie wiem co jest nie tak ;/
System'ek 12.12.2011
Po czym wnioskujesz, że nie działa?
ustaw na
Wtedy powinno być 1/1 jeśli nie zadziała to spróbuje poprawić
if(random(4))
return HAM_IGNORED;
ustaw na
if(random(1))
return HAM_IGNORED;
Wtedy powinno być 1/1 jeśli nie zadziała to spróbuje poprawić
Goliath
13.12.2011
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL