Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
va rog putin ajutor
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
833
iulian100
[Mentally Stable]
Status: Offline
(since 21-07-2017 05:08)
Joined: 14 Feb 2011
Posts: 25
,
Topics: 5
Location:
Romania
Reputation:
121.9
Votes
: 3
Posted: 24-02-2013, 07:12:41
| Translate post to:
... (
Click for more languages
)
Va rog mult sa ma ajutati sa modific ceva la un plugin :
Vreau ca lvl 14 la zm sa coste 140.000 ....pana la lvl 13 merge ok pluginu de zm ,,,si se iau lvl pe ammo ,,dupa accea orice lvl adaug jucaotrii pot loa acel lvl pe 0 ammo ....
Vreau si eu ca lvl 14 sa coste 140.000 si daca se poate lvl 15 ,,170.000
La lvl 14 la zm
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>
#include <zombiexp>
const Weapons = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)
// Bullet Proof Zombie
new const zclass_name[] = { "Zombie Bullet Proof" }
new const zclass_info[] = { "Only hurts with secondary weapons" }
new const zclass_model[] = { "Drauk" }
new const zclass_clawmodel[] = { "v_knife_leech.mdl" }
const zclass_health = 10000
const zclass_speed = 650
const Float:zclass_gravity = 0.80
const Float:zclass_knockback = 1.0
const zclass_level = 14
new gBulletProof
public plugin_init()
{
register_plugin("[ZP] ZP Class: Bullet Proof", "0.2", "DJHD!")
RegisterHam(Ham_TraceAttack, "player", "fw_Player_TraceAttack")
}
public plugin_precache()
gBulletProof = zpxp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback, zclass_level)
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == gBulletProof)
{
if(zp_get_user_nemesis(id))
return
print_chatColor(id, "\g[ZP]\n Remember only you will hurt the secondary weapons.")
}
}
public fw_Player_TraceAttack(iVictim, iAttacker, Float:flDamage, Float:vecDirection[3], iTr, iDamageType)
{
if(!is_user_alive(iVictim) || !is_user_alive(iAttacker))
return HAM_IGNORED;
if(zp_get_user_nemesis(iVictim))
return HAM_IGNORED;
if(zp_get_user_survivor(iAttacker))
return HAM_IGNORED;
if(zp_get_user_zombie_class(iVictim) == gBulletProof)
{
if(entity_get_int(iAttacker, EV_INT_weapons) & Weapons)
{
new Float:vecEndPos[3]
get_tr2(iTr, TR_vecEndPos, vecEndPos)
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, vecEndPos, 0)
write_byte(TE_SPARKS) // TE iId
engfunc(EngFunc_WriteCoord, vecEndPos[0]) // x
engfunc(EngFunc_WriteCoord, vecEndPos[1]) // y
engfunc(EngFunc_WriteCoord, vecEndPos[2]) // z
message_end()
return HAM_SUPERCEDE;
}
}
return HAM_HANDLED;
}
stock print_chatColor(const id, const input[], any:...)
{
new msg[191], players[32], count = 1;
vformat(msg,190,input,3);
replace_all(msg,190,"\g","^4");// green
replace_all(msg,190,"\n","^1");// normal
replace_all(msg,190,"\t","^3");// team
if (id) players[0] = id; else get_players(players,count,"ch");
for (new i=0;i<count;i++)
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
si lvl 15
Name: Deimos Zombie
Type: Zombie Class
Desc: Press +Attack2 to Drop Human Weapon
Edit: Dias Leon
This zombie class made by Petr & 5c0r.
==================================================== */
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <zombieplague>
#include <fun>
#include <hamsandwich>
#include <fakemeta_util>
#define PLUGIN "[ZP] ZClass: Deimos Zombie"
#define VERSION "1.1"
#define AUTHOR "Petr+5cor"
new const zclass_name[] = { "Deimos Zombie" }
new const zclass_info[] = { "Press +Attack2 to Drop Human Weapon" }
new const zclass_model[] = { "zombie_deimos1" }
new const zclass_clawmodel[] = { "v_knife_deimos1.mdl" }
const zclass_health = 3000
const zclass_speed = 240
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 0.25
new beamSpr, deimos_spr
new const deimos_sound[] = "zombie_plague/deimos_skill_hit.wav"
//Cvars
new pcvar_distance
new cvar_cooldown // Cooldown when dropped the weapon of human
new g_deimos
new g_maxplayers
new is_cooldown[33] = 0
new bool:g_cd[33]
new cvar_nemesis
#define PRIMARY_WEAPONS_BIT_SUM ((1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)) // You can allways add more
public plugin_precache()
{
g_deimos = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
beamSpr = precache_model("sprites/lgtning.spr")
deimos_spr = precache_model("sprites/deimosexp.spr")
precache_sound(deimos_sound)
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
pcvar_distance = register_cvar ( "zp_deimos_distance", "1000" )
cvar_cooldown = register_cvar("zp_deimos_shot_cooldown","45")
cvar_nemesis = register_cvar("zp_deimos_nemesis", "1")
g_maxplayers = get_maxplayers()
register_logevent("roundStart", 2, "1=Round_Start")
register_forward(FM_CmdStart, "fwd_cmd_start")
RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn_Post",1)
}
public fw_PlayerSpawn_Post(id)
{
// Not alive...
if(!is_user_alive(id))
return HAM_IGNORED
if(cvar_nemesis == 1)
{
if(zp_get_user_zombie_class(id) == g_deimos && zp_get_user_zombie(id))
{
g_cd[id] = true
}
} else {
if(zp_get_user_zombie_class(id) == g_deimos && zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
{
g_cd[id] = true
}
}
return HAM_IGNORED
}
public fwd_cmd_start(id, uc_handle, seed)
{
if(cvar_nemesis == 1)
{
if (!is_user_alive(id) || !zp_get_user_zombie(id) || g_cd[id] )
return FMRES_IGNORED
} else {
if (!is_user_alive(id) || !zp_get_user_zombie(id) || g_cd[id] || zp_get_user_nemesis(id) )
return FMRES_IGNORED
}
if (zp_get_user_zombie_class(id) != g_deimos)
return FMRES_IGNORED
static buttons
buttons = get_uc(uc_handle, UC_Buttons)
if(buttons & IN_ATTACK2) {
drop_weapon(id)
g_cd[id] = true
}
buttons &= ~IN_ATTACK2
set_uc(uc_handle, UC_Buttons, buttons)
return FMRES_HANDLED
}
drop_weapon(id)
{
new target, body
static Float:start[3]
static Float:aim[3]
pev(id, pev_origin, start)
fm_get_aim_origin(id, aim)
start[2] += 16.0; // raise
aim[2] += 16.0; // raise
get_user_aiming ( id, target, body, pcvar_distance )
if( is_user_alive( target ) && !zp_get_user_zombie( target ) && !zp_get_user_survivor( target ) )
{
message_begin(MSG_BROADCAST ,SVC_TEMPENTITY)
write_byte(TE_EXPLOSION)
engfunc(EngFunc_WriteCoord, aim[0])
engfunc(EngFunc_WriteCoord, aim[1])
engfunc(EngFunc_WriteCoord, aim[2])
write_short(deimos_spr)
write_byte(10)
write_byte(30)
write_byte(4)
message_end()
emit_sound(id, CHAN_WEAPON, deimos_sound, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
drop(target)
}
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(0)
engfunc(EngFunc_WriteCoord,start[0]);
engfunc(EngFunc_WriteCoord,start[1]);
engfunc(EngFunc_WriteCoord,start[2]);
engfunc(EngFunc_WriteCoord,aim[0]);
engfunc(EngFunc_WriteCoord,aim[1]);
engfunc(EngFunc_WriteCoord,aim[2]);
write_short(beamSpr); // sprite index
write_byte(0); // start frame
write_byte(30); // frame rate in 0.1's
write_byte(10); // life in 0.1's
write_byte(100); // line width in 0.1's
write_byte(10); // noise amplititude in 0.01's
write_byte(200); // red
write_byte(200); // green
write_byte(0); // blue
write_byte(100); // brightness
write_byte(50); // scroll speed in 0.1's
message_end();
set_task( get_pcvar_float(cvar_cooldown), "reset_cooldown2", id );
}
public zp_user_infected_post(id, infector)
{
if ((zp_get_user_zombie_class(id) == g_deimos) && !zp_get_user_nemesis(id))
{
is_cooldown[id] = 0
g_cd[id] = false
}
}
public reset_cooldown2(id)
{
g_cd[id] = false
client_print( id, print_chat, "[Deimos Zombie] Now. You can use your Ability. Press +Attack2" )
}
public zp_user_humanized_post(id)
{
remove_task(id)
is_cooldown[id] = 0
}
public roundStart()
{
for (new i = 1; i <= g_maxplayers; i++)
{
is_cooldown[i] = 0
remove_task(i)
}
}
stock drop(id)
{
new weapons[32], num
get_user_weapons(id, weapons, num)
for (new i = 0; i < num; i++) {
if (PRIMARY_WEAPONS_BIT_SUM & (1<<weapons[i]))
{
static wname[32]
get_weaponname(weapons[i], wname, sizeof wname - 1)
engclient_cmd(id, "drop", wname)
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1066\\ f0\\ fs16 \n\\ par }
*/
0
0
Back to top
Axe
[Account disabled]
Status: Offline
(since 14-03-2013 06:08)
Joined: 14 Nov 2012
Posts: 439
,
Topics: 42
Location:
bp.freakz.ro
Reputation:
47.6
Votes
: 9
Posted: 24-02-2013, 07:57:10
| Translate post to:
... (
Click for more languages
)
S-a mai discutat problema aceasta , uite
aici
Vote bp.freakz.ro
|
Counter-Strike 1.6 bp.freakz.ro
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 12-01-2025, 17:04:15
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details