Furien Weapons Shop - NEW UPDATE ! [ 0.0.4 ]
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- Hades Ownage
- Membru eXtream
- Posts: 3182
- Joined: 22 Oct 2008, 10:12
- Detinator Steam: Da
- Detinator server CS: jb.clutch.ro
- SteamID: hades-source
- Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage - Location: Iasi
- Has thanked: 324 times
- Been thanked: 406 times
Ai descarcat macar include-ul dhudmessage ? Link-ul este in post. Am atasat fisierul .amxx, nu mai trebuie sa il compilati .
- FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
Hades vezi ca ai uitat un model p_model de la scorpion mp5
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
#RETIRED.
- Hades Ownage
- Membru eXtream
- Posts: 3182
- Joined: 22 Oct 2008, 10:12
- Detinator Steam: Da
- Detinator server CS: jb.clutch.ro
- SteamID: hades-source
- Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage - Location: Iasi
- Has thanked: 324 times
- Been thanked: 406 times
Nu l-am uitat, nu il am ;))
-
- Fost moderator
- Posts: 2598
- Joined: 01 Dec 2008, 15:32
- Detinator Steam: Da
- Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS - Has thanked: 15 times
- Been thanked: 152 times
Cateva modificari necesare, la prima vedere:
- In loc de:
Ai putea crea o singura o matrice care sa retina toate datele. In precache s-ar reduce de 3 ori codul (va fi nevoie de un loop for care sa parcurga toate modelele).
Code: Select all
new katana_knife_v_model [ 66 ] = "models/furien/knifes/v_katana.mdl"; new katana_knife_p_model [ 66 ] = "models/furien/knifes/p_katana.mdl"; new double_katana_v_knife_model [ 66 ] = "models/furien/knifes/v_double_katana.mdl"; new double_katana_p_knife_model [ 66 ] = "models/furien/knifes/p_double_katana.mdl"; new super_knife_v_model [ 66 ] = "models/furien/knifes/v_super_knife1.mdl"; new super_knife_p_model [ 66 ] = "models/furien/knifes/p_super_knife1.mdl"; new infinity_knife_v_model [ 66 ] = "models/furien/knifes/v_infinity_knife1.mdl"; new infinity_knife_p_model [ 66 ] = "models/furien/knifes/p_infinity_knife1.mdl"; new dual_mp5_v_model [ 66 ] = "models/furien/weapons/v_dualmp5.mdl"; new dual_mp5_p_model [ 66 ] = "models/furien/weapons/p_dualmp5.mdl"; new scorpion_mp5_v_model [ 66 ] = "models/furien/weapons/v_scorpionmp5.mdl"; // new scorpion_mp5_p_model [ 66 ] = "models/furien/weapons/p_scorpionmp5.mdl"; new xm1014_shoutgun_v_model [ 66 ] = "models/furien/weapons/v_xm1014shoutgun.mdl"; // new xm1014_shoutgun_p_model [ 66 ] = "models/furien/weapons/p_xm1014shoutgun.mdl"; new m3_shoutgun_v_model [ 66 ] = "models/furien/weapons/v_m3shoutgun.mdl"; // new m3_shoutgun_p_model [ 66 ] = "models/furien/weapons/p_m3shoutgun.mdl"; new thompson_v_model [ 66 ] = "models/furien/weapons/v_thompson.mdl"; new thompson_p_model [ 66 ] = "models/furien/weapons/p_thompson.mdl"; new uspx_v_model [ 66 ] = "models/furien/weapons/v_uspx.mdl"; new uspx_p_model [ 66 ] = "models/furien/weapons/p_uspx.mdl"; new hammer_knife_v_model [ 66 ] = "models/furien/knifes/v_viphammer.mdl"; new hammer_knife_p_model [ 66 ] = "models/furien/knifes/p_viphammer.mdl"; new axe_knife_v_model [ 66 ] = "models/furien/knifes/v_vipaxe.mdl"; new axe_knife_p_model [ 66 ] = "models/furien/knifes/p_vipaxe.mdl"; new vip_awp_v_model [ 66 ] = "models/furien/weapons/v_vipawp.mdl"; // new vip_awp_p_model [ 66 ] = "models/furien/weapons/p_vipawp.mdl"; new vip_elite_v_model [ 66 ] = "models/furien/weapons/v_vipelite.mdl"; new vip_elite_p_model [ 66 ] = "models/furien/weapons/p_vipelite.mdl"; new vip_cartblue_v_model [ 66 ] = "models/furien/weapons/v_vipcartblue.mdl"; new vip_cartblue_p_model [ 66 ] = "models/furien/weapons/p_vipcartblue.mdl"; new vip_cartred_v_model [ 66 ] = "models/furien/weapons/v_vipcartred.mdl"; new vip_cartred_p_model [ 66 ] = "models/furien/weapons/p_vipcartred.mdl"; new vip_dualkriss_v_model [ 66 ] = "models/furien/weapons/v_vipdualkriss.mdl"; new vip_dualkriss_p_model [ 66 ] = "models/furien/weapons/p_vipdualkriss.mdl"; new vip_dualskull_v_model [ 66 ] = "models/furien/weapons/v_vipdualskull.mdl"; new vip_dualskull_p_model [ 66 ] = "models/furien/weapons/p_vipdualskull.mdl"; new vip_minigun_v_model [ 66 ] = "models/furien/weapons/v_vipm134.mdl"; new vip_minigun_p_model [ 66 ] = "models/furien/weapons/p_vipm134.mdl";
- In loc de:
poti utiliza:
Code: Select all
new bool:katana_knife [ 33 ]; new bool:double_katana_knife [ 33 ]; new bool:super_knife [ 33 ]; new bool:infinity_knife [ 33 ]; new bool:dual_mp5 [ 33 ]; new bool:scorpion_mp5 [ 33 ]; new bool:xm1014_shoutgun [ 33 ]; new bool:m3_shoutgun [ 33 ]; new bool:thompson [ 33 ]; new bool:weapon_uspx [ 33 ]; new bool:vip_awp [ 33 ]; new bool:vip_elite [ 33 ]; new bool:vip_dualkriss [ 33 ]; new bool:vip_dualskull [ 33 ]; new bool:vip_minigun [ 33 ]; new bool:vip_hammer_knife [ 33 ]; new bool:vip_axe_knife [ 33 ]; new bool:vip_cartblue [ 33 ]; new bool:vip_cartred [ 33 ]; new bool:vip_cartblue2 [ 33 ]; new bool:vip_cartred2 [ 33 ];
- De ce inregistrezi de 2 ori spawn-ul prin hamsandwich? Sterge primul hook, iar in al 2-lea (RefreshAllWeapons) adaugi CheckFurienAcces( id ).
- In FurienCurrentWeapon(const id) ai o multime de cod in plus. De ce atatea if-uri cand poti in unul singur? Plus ca verifici de 2 ori daca arma curenta e CSW_KNIFE.
Tot aici, la else if ai omis faptul ca double_kata_knife, super_knife, ..., sunt vectori. - In AntiFurienCurrentWeapon(const id) verifici din nou de 2 ori daca userul are aceeasi arma. Inutil. In locul multelor if-uri, e necesar sa folosesti switch.
- round_start nu are niciun parametru.
- devine Codul tau de mai sus parcurge toate sloturile de pe server, indiferent ca sunt ocupate sau nu.
Code: Select all
public round_end ( ) { static id; for ( id = 1 ; id <= g_iMaxPlayers ; id++ ) { if (!is_user_alive ( id ) ) continue; strip_user_weapons ( id ); set_pdata_int ( id, 116, 0 ); give_item ( id, "weapon_knife" ); } }
- In CheckFurienAcces(const id), foloseste switch in loc de cele 2 if-uri.
- Meniurile pot fi create in plugin_cfg() o singura data. In sursa ta, ele se creaza de fiecare data cand public-ul este accesat.
- In loc de public-urile in care setezi damage-ul pentru arme, poti folosi unul singuri in care folosesti switch (daca vei aplica ce am spus mai sus).
- FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
Hei hades uite ai putea sa imi faci si mie din pluginul acesta , dupa cum vezi am modelele w_ ale armelor dar nu stiu cum sa le pun m-ai putea ajuta?
Adica armele sa apara pe jos ....
Adica armele sa apara pe jos ....
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
#RETIRED.
- MrAndrei
- Membru eXtream
- Posts: 2120
- Joined: 17 Mar 2013, 18:10
- Detinator Steam: Da
- CS Status: Facultatea iti mananca viata
- SteamID: mrandreyx
- Reputatie: Fost moderator
Nume anterior: asasinulfantoma
Fost Membru Club eXtreamCS (doua luni) - Has thanked: 32 times
- Been thanked: 28 times
salut poti da add la angel.inger20 sau pm penrtu ca as vra eun plugin de genul dar pentu mrodul zm:)...apropo ai facut o treaba buna.
- Hades Ownage
- Membru eXtream
- Posts: 3182
- Joined: 22 Oct 2008, 10:12
- Detinator Steam: Da
- Detinator server CS: jb.clutch.ro
- SteamID: hades-source
- Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage - Location: Iasi
- Has thanked: 324 times
- Been thanked: 406 times
FaTzZu wrote:Hei hades uite ai putea sa imi faci si mie din pluginul acesta , dupa cum vezi am modelele w_ ale armelor dar nu stiu cum sa le pun m-ai putea ajuta?
Adica armele sa apara pe jos ....
Ma intreb cum de mai ai tupeul sa vii aici cand tu te dai drept autor .
register_plugin("ArmeFurien", "1.0", "Andu. <3");
Codul este facut de mine, tu doar l-ai luat dintr-o parte si l-ai pus in alta .
asasinulfantoma wrote:salut poti da add la angel.inger20 sau pm penrtu ca as vra eun plugin de genul dar pentu mrodul zm:)...apropo ai facut o treaba buna.
De aia exista forum, sa faci topic cu plugin-ul dorit, nu sa ti-l fac eu pe mess !
- FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
Hai sa iti spun de ce , aveam pluginu cu armele de la spawn si am uitat numele acolo :-? nu l-am vazt dar am pus #define AUTHOR "HadesOwnage"
EDIT : Am rezolvat cu w_model :D
EDIT : Am rezolvat cu w_model :D
Last edited by FaTzZu on 19 Mar 2013, 19:14, edited 1 time in total.
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
#RETIRED.
- satasa
- Membru, skill +1
- Posts: 371
- Joined: 12 Nov 2012, 10:43
- Detinator Steam: Nu
- CS Status: Ocupat
- Reputatie: Membru Club eXtreamCS (2 iun - 2 iul, Acces in Club)
- Has thanked: 55 times
- Been thanked: 10 times
- Contact:
Imi puteti spune cum pun dhudmessage.inc in plugin ca sa numi mai dea eroare la compilare?:
satasa wrote:si mie imi da o eroare:Aveti vreo ideie?aparut o eroare la compilare, verificati logul alaturat pentru a depista problema.
Se pare ca acest compilator nu are libraria dhudmessage
- Hades Ownage
- Membru eXtream
- Posts: 3182
- Joined: 22 Oct 2008, 10:12
- Detinator Steam: Da
- Detinator server CS: jb.clutch.ro
- SteamID: hades-source
- Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage - Location: Iasi
- Has thanked: 324 times
- Been thanked: 406 times
Ai fisierul .amxx, daca nu stii sa compilezi descarca doar amxx .satasa wrote:Imi puteti spune cum pun dhudmessage.inc in plugin ca sa numi mai dea eroare la compilare?:satasa wrote:si mie imi da o eroare:Aveti vreo ideie?aparut o eroare la compilare, verificati logul alaturat pentru a depista problema.
Se pare ca acest compilator nu are libraria dhudmessage
- Mount~
- Membru, skill +4
- Posts: 1688
- Joined: 28 Feb 2013, 08:29
- Detinator Steam: Da
- CS Status: Învață să nu depinzi de nimeni.
- Detinator server CS: în curând
- SteamID: lichone1
- Location: Bacău
- Has thanked: 175 times
- Been thanked: 54 times
Super reușit ! Felicitări ! :D + este FREE ai un mulțumesc ! :D