User
Pass
2FA
 
 

Ceva minor adugare unui plugin
Go to page 1, 2  Next    
 
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) -> Fixed issues
Author Message1809
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 17-07-2015, 14:10:57 | Translate post to: ... (Click for more languages)

cum pot adauga un level nou la zm xp eu am 13 levele vreu sa mai adaug cateva levele cum fac ?? trebuie modificat si pluginu de baza si in plaguie ini nu -

daca se poate sami dati zombie tank sa fie lv 14 ^_^ si sa imi explicati cum il pun multumesc anticipat - maiestre pic@ - te astept

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 17-07-2015, 14:37:22 | Translate post to: ... (Click for more languages)

Uite un exemplu cum inregistrezi.
Spoiler:

Uite si tank .
Spoiler:

Resurse : Download



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 17-07-2015, 15:25:46 | Translate post to: ... (Click for more languages)

nu stiu daca mai inteles vreau zombi tanck sa fie pentru levelul 14 pentru MOD XP zm nu clasa normala


nu am inteles nimic cum il bag daca e pentru xp la mod normal adaug doar la clase si in plugin inji da la mod xp nu stiu

explicam SI mie cum trebuie bagat unde nu sunt scripter sa stiu tot

0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 17-07-2015, 17:06:22 | Translate post to: ... (Click for more languages)

Ti-am pus mai sus cu comentariu "//" e pentru zombiexp - lvl 14 mai exact citeste tot nu trebuie sa fii scripter sa iti dai seama de ce am scris acolo.
cauta in tanker asta const zclass_level = 14 :.: ti-am lasat in exemplu cum pui o clasa simpla fara alte curcubee ,pentru zombiexp desigur.



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
^SaD*^

[Mentally Stable]



Status: Offline
(since 03-03-2019 23:50)
Joined: 10 Dec 2014
Posts: 289, Topics: 44
Location: Germany

Reputation: 159
Votes: 5

     
Post Posted: 17-07-2015, 17:53:14 | Translate post to: ... (Click for more languages)

Pitbul1997 uitete mai bine in ce a pus destroi mai sus acea clasa de zombie este pentru zombie xp mod
Citeste ce scrie aici :
Code:
#include <amxmodx>
#include <zombieplague>
#include <zombiexp>
#include <fakemeta>
#include <engine>
#include <fun>
#include <hamsandwich>

/* L4D Tank Zombie
by x[L]eoNNN

#Description :

this is a Zombie Class of Famous Game, "L4d" with the ability to throw rocks at enemies,
either killing him, infecting taking life, etc. (controlled by a cvar)

#Cvars :

zp_tank_rockspeed 700 // Rock Speed Launched by Tank
zp_tank_rockdamage 70 // damage done by the rock
zp_tank_rockreward 1 // Ammo Pack's Reward by touching the enemy with the rock
zp_tank_rockmode 1 // Rock Mode :
1 = Take Damage
2 = Killing
3 = Infect
4 = Bad Aim
zp_tank_rock_energynesesary 20 // energy nesesary to launch a rock

#Changelog :

v1.0: public release
v1.1: print messages changed to hudmessages (for spam), fix time reload bug,add effect touching rock
v1.2: fix a survivor bugs', To break an entity "func_breakable" when the rock touches the entity,
fix a problem with logs : native error : get_user_origin.
*/
new const zclass_name[] = { "L4D Tank Zombie" }
new const zclass_info[] = { "Launch Rocks" }
new const zclass_model[] = { "l4d_tank" }
new const zclass_clawmodel[] = { "v_tank.mdl" }
const zclass_health = 1800
const zclass_speed = 240
const zclass_level = 14
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 1.0

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 17-07-2015, 20:43:23 | Translate post to: ... (Click for more languages)

si cum il pun trb compilat -_- sigur iar dau gres la copii paste poti sami pui direct un sma cum il pun frate pic@ ziimi tu ca tu stii sa explici


ce miai dat in arhiva nu cuprinde cvaru zombiexp deci nu e pentru xp mod -_-

0 0
  
Back to top
View user's profile Send private message
^SaD*^

[Mentally Stable]



Status: Offline
(since 03-03-2019 23:50)
Joined: 10 Dec 2014
Posts: 289, Topics: 44
Location: Germany

Reputation: 159
Votes: 5

     
Post Posted: 17-07-2015, 20:53:15 | Translate post to: ... (Click for more languages)

Ba omule tu copiaza ce ti.a dat el ultima data . Stergi ce este in sma cel care nu include xp si adaugi :
Code:
#include <amxmodx>
#include <zombieplague>
#include <zombiexp>
#include <fakemeta>
#include <engine>
#include <fun>
#include <hamsandwich>

/* L4D Tank Zombie
by x[L]eoNNN

#Description :

this is a Zombie Class of Famous Game, "L4d" with the ability to throw rocks at enemies,
either killing him, infecting taking life, etc. (controlled by a cvar)

#Cvars :

zp_tank_rockspeed 700 // Rock Speed Launched by Tank
zp_tank_rockdamage 70 // damage done by the rock
zp_tank_rockreward 1 // Ammo Pack's Reward by touching the enemy with the rock
zp_tank_rockmode 1 // Rock Mode :
1 = Take Damage
2 = Killing
3 = Infect
4 = Bad Aim
zp_tank_rock_energynesesary 20 // energy nesesary to launch a rock

#Changelog :

v1.0: public release
v1.1: print messages changed to hudmessages (for spam), fix time reload bug,add effect touching rock
v1.2: fix a survivor bugs', To break an entity "func_breakable" when the rock touches the entity,
fix a problem with logs : native error : get_user_origin.
*/
new const zclass_name[] = { "L4D Tank Zombie" }
new const zclass_info[] = { "Launch Rocks" }
new const zclass_model[] = { "l4d_tank" }
new const zclass_clawmodel[] = { "v_tank.mdl" }
const zclass_health = 1800
const zclass_speed = 240
const zclass_level = 14
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 1.0

new g_L4dTank

new g_trailSprite, rockmodel
new g_trail[] = "sprites/xbeam3.spr"
new rock_model[] = "models/rockgibs.mdl"
new rock_model2[] = "models/rockgibs.mdl"
new tank_rocklaunch[] = "zombie_plague/tank_rocklaunch.wav"


new g_power[33]

new cvar_rock_damage, cvar_rock_reward, cvar_rockmode, cvar_rockEnergyNesesary, cvar_rock_speed, cvar_reloadpower

public plugin_init()
{
register_plugin("[ZP] Zombie Class: L4D Tank Zombie", "1.2", "x[L]eoNNN")

cvar_rock_speed = register_cvar("zp_tank_rockspeed", "700")
cvar_rock_damage = register_cvar("zp_tank_rockdamage", "70")
cvar_rock_reward = register_cvar("zp_tank_rockreward", "1")
cvar_rockmode = register_cvar("zp_tank_rockmode", "1")
cvar_rockEnergyNesesary = register_cvar("zp_tank_rock_energynesesary", "20")
cvar_reloadpower = register_cvar("zp_tank_reload_power", "1")
register_touch("rock_ent","*","RockTouch")
register_forward(FM_CmdStart, "CmdStart" )
}

public plugin_precache()
{
g_L4dTank = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback,zclass_level)
g_trailSprite = precache_model(g_trail)
rockmodel = precache_model(rock_model)
precache_sound(tank_rocklaunch)
}

public zp_user_infected_post ( id, infector )
{
if (zp_get_user_zombie_class(id) == g_L4dTank)
{
print_chatColor(id, "\g[ZP]\n You Are A \gL4D Tank\n, You Cant Launch Rock With \tIN_USE [+E]")
g_power[id] = get_pcvar_num(cvar_rockEnergyNesesary)
set_task(get_pcvar_float(cvar_reloadpower), "power1", id, _, _, "b")
}
}

public CmdStart( const id, const uc_handle, random_seed )
{
if(!is_user_alive(id))
return FMRES_IGNORED;

if(!zp_get_user_zombie(id) || zp_get_user_nemesis(id))
return FMRES_IGNORED;

new button = pev(id, pev_button)
new oldbutton = pev(id, pev_oldbuttons)

if (zp_get_user_zombie(id) && (zp_get_user_zombie_class(id) == g_L4dTank))
if(oldbutton & IN_USE && !(button & IN_USE))
{
if(g_power[id] >= get_pcvar_num(cvar_rockEnergyNesesary))
{
MakeRock(id)
emit_sound(id, CHAN_STREAM, tank_rocklaunch, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
g_power[id] = 0
}
else
{
set_hudmessage(255, 0, 0, 0.0, 0.6, 0, 6.0, 3.0)
show_hudmessage(id, "[ZP] Energy Nesesary To Launch Rock [%d] || You Energy [%d]", get_pcvar_num(cvar_rockEnergyNesesary), g_power[id])
}

}

return FMRES_IGNORED
}

public power1(id)
{
g_power[id] += 1

if( g_power[id] > get_pcvar_num(cvar_rockEnergyNesesary) )
{
g_power[id] = get_pcvar_num(cvar_rockEnergyNesesary)
}
}

public RockTouch( RockEnt, Touched )
{
if ( !pev_valid ( RockEnt ) )
return

static Class[ 32 ]
entity_get_string( Touched, EV_SZ_classname, Class, charsmax( Class ) )
new Float:origin[3]

pev(Touched,pev_origin,origin)

if( equal( Class, "player" ) )
if (is_user_alive(Touched))
{
if(!zp_get_user_zombie(Touched))
{
new TankKiller = entity_get_edict( RockEnt, EV_ENT_owner )

switch(get_pcvar_num(cvar_rockmode))
{
case 1: // Health
{
new iHealth = get_user_health(Touched)

if( iHealth >= 1 && iHealth <= get_pcvar_num(cvar_rock_damage))
{
ExecuteHamB( Ham_Killed, Touched, TankKiller, 0 )
print_chatColor(TankKiller, "\g[ZP]\n You Receive \t%d\n Ammo Packs To Reach a Rock a Enemy", get_pcvar_num(cvar_rock_reward))
zp_set_user_ammo_packs(TankKiller, zp_get_user_ammo_packs(TankKiller) + get_pcvar_num(cvar_rock_reward))
}
else
{
set_user_health(Touched, get_user_health(Touched) - get_pcvar_num(cvar_rock_damage))
print_chatColor(TankKiller, "\g[ZP]\n You Receive \t%d\n Ammo Packs To Reach a Rock a Enemy", get_pcvar_num(cvar_rock_reward))
zp_set_user_ammo_packs(TankKiller, zp_get_user_ammo_packs(TankKiller) + get_pcvar_num(cvar_rock_reward))
}
}
case 2: // Kill
{
if(zp_get_user_survivor(Touched))
return

ExecuteHamB( Ham_Killed, Touched, TankKiller, 0 )
zp_set_user_ammo_packs(TankKiller, zp_get_user_ammo_packs(TankKiller) + get_pcvar_num(cvar_rock_reward))
print_chatColor(TankKiller, "\g[ZP]\n You Receive \t%d\n Ammo Packs To Reach a Rock a Enemy", get_pcvar_num(cvar_rock_reward))
}
case 3: //infect
{
if(zp_get_user_survivor(Touched))
return

zp_infect_user(Touched, TankKiller, 1, 1)
print_chatColor(TankKiller, "\g[ZP]\n You Receive \t%d\n Ammo Packs To Reach a Rock a Enemy", get_pcvar_num(cvar_rock_reward))
zp_set_user_ammo_packs(TankKiller, zp_get_user_ammo_packs(TankKiller) + get_pcvar_num(cvar_rock_reward))

}
case 4: //BadAim
{
new Float:vec[3] = {100.0,100.0,100.0}

entity_set_vector(Touched,EV_VEC_punchangle,vec)
entity_set_vector(Touched,EV_VEC_punchangle,vec)
entity_set_vector(Touched,EV_VEC_punchangle,vec)

print_chatColor(TankKiller, "\g[ZP]\n You Receive \t%d\n Ammo Packs To Reach a Rock a Enemy", get_pcvar_num(cvar_rock_reward))
zp_set_user_ammo_packs(TankKiller, zp_get_user_ammo_packs(TankKiller) + get_pcvar_num(cvar_rock_reward))
set_task(1.50, "EndVictimAim", Touched)
}
}
}
}

if(equal(Class, "func_breakable") && entity_get_int(Touched, EV_INT_solid) != SOLID_NOT)
force_use(RockEnt, Touched)

remove_entity(RockEnt)

if(!is_user_alive(Touched))
return

static origin1[3]
get_user_origin(Touched, origin1)

message_begin(MSG_BROADCAST,SVC_TEMPENTITY, origin1);
write_byte(TE_BREAKMODEL);
write_coord(origin1[0]);
write_coord(origin1[1]);
write_coord(origin1[2] + 24);
write_coord(16);
write_coord(16);
write_coord(16);
write_coord(random_num(-50,50));
write_coord(random_num(-50,50));
write_coord(25);
write_byte(10);
write_short(rockmodel);
write_byte(10);
write_byte(25);
write_byte(0x01);
message_end();
}

public EndVictimAim(Touched)
{
new Float:vec[3] = {-100.0,-100.0,-100.0}
entity_set_vector(Touched,EV_VEC_punchangle,vec)
entity_set_vector(Touched,EV_VEC_punchangle,vec)
entity_set_vector(Touched,EV_VEC_punchangle,vec)
}

public MakeRock(id)
{

new Float:Origin[3]
new Float:Velocity[3]
new Float:vAngle[3]

new RockSpeed = get_pcvar_num(cvar_rock_speed)

entity_get_vector(id, EV_VEC_origin , Origin)
entity_get_vector(id, EV_VEC_v_angle, vAngle)

new NewEnt = create_entity("info_target")

entity_set_string(NewEnt, EV_SZ_classname, "rock_ent")

entity_set_model(NewEnt, rock_model2)

entity_set_size(NewEnt, Float:{-1.5, -1.5, -1.5}, Float:{1.5, 1.5, 1.5})

entity_set_origin(NewEnt, Origin)
entity_set_vector(NewEnt, EV_VEC_angles, vAngle)
entity_set_int(NewEnt, EV_INT_solid, 2)

entity_set_int(NewEnt, EV_INT_rendermode, 5)
entity_set_float(NewEnt, EV_FL_renderamt, 200.0)
entity_set_float(NewEnt, EV_FL_scale, 1.00)

entity_set_int(NewEnt, EV_INT_movetype, 5)
entity_set_edict(NewEnt, EV_ENT_owner, id)

velocity_by_aim(id, RockSpeed , Velocity)
entity_set_vector(NewEnt, EV_VEC_velocity ,Velocity)

message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW)
write_short(NewEnt)
write_short(g_trailSprite)
write_byte(10)
write_byte(10)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(200)
message_end()

return PLUGIN_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();
}
}

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 17-07-2015, 21:14:03 | Translate post to: ... (Click for more languages)

zp_zhclass_task.sma(75) : error 088: number of arguments does not match definition

1 Error.
Compilarea a esuat!

0 0
  
Back to top
View user's profile Send private message
Iulian3D

[Mentally Stable]



Status: Offline
(since 04-03-2020 22:38)
Joined: 21 Jun 2015
Posts: 227, Topics: 37
Location: Buftea .

Reputation: 178.8
Votes: 4

   
Post Posted: 17-07-2015, 21:33:15 | Translate post to: ... (Click for more languages)

Poftim ți l-am fãcut eu : http://www.girlshare.ro/34942653.9
Îl descarci copiezi toate cele trei foldere și le lipești în : HLDS/cstrike .

Dacã vrei pot sã-ți fac un tutorial video ca sã-ți explic cum se face .

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 18-07-2015, 12:15:57 | Translate post to: ... (Click for more languages)

am abgat plugin sma modele sound am adaugat in zp pugin ini acolo la zombie xp si nu merge se descarca modelu soudnu da mam uitat la meniu xp si nu este sa urc levelu respectiv
0 0
  
Back to top
View user's profile Send private message
Iulian3D

[Mentally Stable]



Status: Offline
(since 04-03-2020 22:38)
Joined: 21 Jun 2015
Posts: 227, Topics: 37
Location: Buftea .

Reputation: 178.8
Votes: 4

   
Post Posted: 18-07-2015, 12:44:16 | Translate post to: ... (Click for more languages)

Adaugã fișierul zpxp_14_zombie.amxx ( îl gãsești în folderul plugins din arhiva pe care ți-am dat-o ) in folderul plugins din serverul tãu . Apoi intrã în fișierul configs și deschide cu notepad fișierul plugins-zplague.ini . Acum în fișierul plugins-zplague.ini cautã linia ; Zombie XP Zombies și adaugã dedesubt zpxp_14_zombie.amxx

Posturi unite automat, 18-07-2015, 13:44:16

Ai înțeles sau îți fac un tutorial video ?

0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 18-07-2015, 13:16:05 | Translate post to: ... (Click for more languages)

am pus ma omule nus asa prost dar nu merge cand deschid meniul xp sa urc levelul nu apare
0 0
  
Back to top
View user's profile Send private message
Iulian3D

[Mentally Stable]



Status: Offline
(since 04-03-2020 22:38)
Joined: 21 Jun 2015
Posts: 227, Topics: 37
Location: Buftea .

Reputation: 178.8
Votes: 4

   
Post Posted: 18-07-2015, 13:33:18 | Translate post to: ... (Click for more languages)

La mine merge . Zi-mi exact cum ai fãcut .
0 0
  
Back to top
View user's profile Send private message
Pitbul1997

[Mentally Stable]



Status: Offline
(since 17-12-2016 20:32)
Joined: 14 Jun 2015
Posts: 250, Topics: 53
Location: Romania

Reputation: 75.3
Votes: 2

Post Posted: 18-07-2015, 13:39:13 | Translate post to: ... (Click for more languages)

fisierul amx lam pus in plugin fisierul sma in scripting modelee in player si zp plague iar la sfarsit am intrat la zp plugin ini si am audaugat la zona zombie xp mod am pus linia respectiva am dat restart la server am intrat am apasat tasta j sa se deschide meniul xp si surpriza nu exista nici un leve pentru clasa tank ^_^
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 18-07-2015, 13:48:32 | Translate post to: ... (Click for more languages)

Atunci tu ai pus in zp_exp max lvl 13 sau maximul la clase sa fie prea mic si sa nu poti adauga in + daca lui ii merge inseamna ca problema e de la tine.


Retired from Amxmodx

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

Locked by -P!C@-, 23 July 2015 18:24



 
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) -> Fixed issues  
Go to page 1, 2  Next    


The time now is 28-07-2025, 04:23:10
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