User
Pass
2FA
 
 

[ Plugin Zp] Imun He
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) -> Resources
Author Message5354
GoguSM

[.: ZMGO.FREAKZ.RO :.]



Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516, Topics: 71
Location: Brasov

Reputation: 1144
Votes: 95

Post Posted: 19-07-2015, 20:58:11 | Translate post to: ... (Click for more languages)

Descriere:
Aces plugin este pentr-u modurile de zm, face ca la moduri si ultimu human sa nu poate arunca Grenada de infectie (He)

Info:
Versiune: 1.0
Autor: Yontu

Sma Zp 4.3:
Spoiler:

Sma Zp advance 1.6.1:
Spoiler:

Sma Zombie Plague Special [Freakz Edition]
Spoiler:



Instalare:

Se copie continu din spoilere, se adauga intr-un fisier txt se da file/save as... si puneti numele.sma dupa ce ati optinut sma, compilatil pe un compilator, recomand compilatoru local.
Se optine fisieru .amxx
Dupa Intrati in fisierul addons-amxmodx-configs-plugins-zplague.ini si adaugati la urma: nume.amxx

Multumiri speciale: Deluxe


 
Staff message (EDUTz):
 
Schimba autorul sau te alegi cu warn !




Last edited by GoguSM on 27-07-2015, 16:52:10; edited 2 times in total
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: 19-07-2015, 22:06:12 | Translate post to: ... (Click for more languages)

Code:

Aces plugin este pentr-u modurile de zm, face ca la moduri si ultimu human sa nu poate primi Grenada de infectie (He)

Corect ar fii ca nu te lasa sa arunci grenada daca se indeplinesc conditiile.Also daca grenada de infectie e de exemplu pe flashbang nu o sa mearga poti pune un cvar care sa schimbe din he/fb/smoke -
Daca vrei sa nu mai poata lua grenada de oriunde (de pe jos ,shop etc) folosesti (ei o sa ia grenada da nu o sa mai apara in mana cum ar venii stergem grenada) =>
Code:

RegisterHam(Ham_Touch, "weapon_hegrenade", "delete_infecthe");

public delete_infecthe(ent, id)
{
   static model[32], class[32]
   if(is_valid_ent(ent)  && is_user_alive(id) && zp_get_user_zombie(id))
   {
      entity_get_string(ent, EV_SZ_model, model, charsmax(model))
      if(model[7] == 'w' && model[8] == '_' && model[9] == 'h')
      {
         entity_get_string(ent, EV_SZ_classname, class, charsmax(class))
         if(equal(class, "weapon_hegrenade"))
            remove_entity(ent)
         
         return HAM_SUPERCEDE
       }
      
   }
   
   return HAM_IGNORED
}



Retired from Amxmodx



Last edited by destroi112 on 25-07-2015, 12:34:51; edited 3 times in total
0 0
  
Back to top
View user's profile Send private message
GoguSM

[.: ZMGO.FREAKZ.RO :.]



Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516, Topics: 71
Location: Brasov

Reputation: 1144
Votes: 95

Post Posted: 19-07-2015, 22:27:31 | Translate post to: ... (Click for more languages)

Da multumesc de info - revin maine cu practica - ms de atentie - na is pe la inceput spre mediu.
Edit. Am editat primu post.

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: 19-07-2015, 22:53:59 | Translate post to: ... (Click for more languages)

Hmm uite de asta ziceam.
Spoiler:

Sa testezi si tu -



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: 20-07-2015, 00:34:49 | Translate post to: ... (Click for more languages)

Am testat si eu pluginul si functioneaza bine , bravo si multumesc pentru plagin cautam asa ceva.. -
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
GoguSM

[.: ZMGO.FREAKZ.RO :.]



Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516, Topics: 71
Location: Brasov

Reputation: 1144
Votes: 95

Post Posted: 20-07-2015, 10:28:45 | Translate post to: ... (Click for more languages)

Destroy - dece sa mai fac si pentr-u flash etc... ca la orice mod zm grenada de infectie este setata pe
Code:
 weapon_hegrenade

Eu zic cai bun asa -

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: 20-07-2015, 10:59:09 | Translate post to: ... (Click for more languages)

^Depinde daca omul il are pe altceva - sau poate vrea sa blocheze alta grenada .


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
YONTU
[Banned user]


Banned


Status: Offline
(since 06-08-2015 14:49)
Joined: 16 Feb 2015
Posts: 30, Topics: 5
Location: Gura Humorului, Suceava

Reputation: -6
Votes: 2

 
Post Posted: 25-07-2015, 10:20:09 | Translate post to: ... (Click for more languages)

Dupa ce te rogi de mine sa-ti fac pluginul il postezi, fara sa adaugi si credite. Bravo, te respect pentru asta, domnule scripter. Ajutor de la mine nu mai prinzi.

Destroy, ce i-ai dat tu nu e corect. Si nici nu va functiona.
Corect este:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <zombieplague>
#include <engine>

new const grenade_name[][] =
{   
   "weapon_hegrenade",
   "weapon_flashbang",
   "weapon_smokegrenade"
};

#define WHAT_NADE 1

/*
0 - he
1 - fb
2 - sm
*/

public plugin_init()
{
   register_plugin("Imun He", "1.0", "Vipera");
   for(new i = 0; i < sizeof grenade_name; i++)
   {
      RegisterHam(Ham_Weapon_PrimaryAttack, grenade_name[i], "fw_PrimaryAttackGrenades");
      RegisterHam(Ham_Touch, grenade_name[i], "delete_infecthe");
   }
}

public fw_PrimaryAttackGrenades(ent)
{
   new id = pev(ent, pev_owner);
   
   if(zp_get_user_zombie(id))
   {
      if(zp_is_survivor_round() || zp_get_human_count() == 1)
         return HAM_SUPERCEDE;
      
      return HAM_IGNORED;
   }
   
   return HAM_IGNORED;
}

public delete_infecthe(ent, id)
{
   static model[32], class[32]
   if(is_valid_ent(ent) && is_user_alive(id) && zp_get_user_zombie(id))
   {
      entity_get_string(ent, EV_SZ_model, model, charsmax(model))
      
      new mod;
      switch(WHAT_NADE)
      {
         case 0: mod = 'h';
         case 1: mod = 'f';
         case 2: mod = 's';
      }
      
      if(model[7] == 'w' && model[8] == '_' && model[9] == mod)
      {
         entity_get_string(ent, EV_SZ_classname, class, charsmax(class))
         if(equal(class, grenade_name[WHAT_NADE]))
            remove_entity(ent)
            
         return HAM_SUPERCEDE;
      }
   }
   
   return HAM_IGNORED;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/


@Viper:


VAND / MODIFIC / CREEZ [AMXX]

Creez orice plugin LEVEL MOD pentru orice MOD de CS.
Contact: sef_yontu
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
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: 25-07-2015, 12:15:38 | Translate post to: ... (Click for more languages)

^Este si varianta mea doar ca eu am ales sa nu inregistrez numele ci sa "mesteresc" cu if ,da varianta ta consuma mai putin si e mai practica.Mi-a fost lene sa folosesc alt mod -
PS:Mi-am dat seama ca am gresit la mod -_-.
aici mai exact
Spoiler:

PS:Deci pana la urma autorul era altcineva?



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
YONTU
[Banned user]


Banned


Status: Offline
(since 06-08-2015 14:49)
Joined: 16 Feb 2015
Posts: 30, Topics: 5
Location: Gura Humorului, Suceava

Reputation: -6
Votes: 2

 
Post Posted: 25-07-2015, 12:22:33 | Translate post to: ... (Click for more languages)

destroi112 wrote:
^Este si varianta mea doar ca eu am ales sa nu inregistrez numele ci sa "mesteresc" cu if ,da varianta ta consuma mai putin si e mai practica.Mi-a fost lene sa folosesc alt mod -
PS:Mi-am dat seama ca am gresit la mod -_-.

Varianta ta nu merge. Vrei sa-ti si arat unde ai gresit?
Code:
      if(model[7] == 'w' && model[9] == 'h' && model[10] == 'e' && model[11] == 'g')
      {
         entity_get_string(ent, EV_SZ_classname, class, charsmax(class))
         switch(GRENADE_TYPE){
            case 1 :{
               if(equal(class, "weapon_hegrenade"))
                  remove_entity(ent);
            }
            case 2 : {
               if(equal(class, "weapon_flashbang"))
                  remove_entity(ent);
            }
            case 3 : {
               if(equal(class, "weapon_smokegrenade"))
                  remove_entity(ent);
            }
         }
         return HAM_SUPERCEDE
      }

Verifici tot in conditia if(model[7] == 'w' && model[9] == 'h' && model[10] == 'e' && model[11] == 'g').
Se executa doar daca modelul este grenada he.
Daca vroiai sa faci pe cazuri la fiecare grenada in parte trebuia sa verifici care este modelul mai intai.
La fb: if(model[7] == 'w' && model[9] == 'f')
La sm: if(model[7] == 'w' && model[9] == 's')

Tu ai verificat modelul, in cazul nostru este HE grenade, apoi in dai cu switch pe cazuri. Daca tipul grenazi era 2, iti elimina grenada fb, chiar daca in conditie ai verificat modelul he.

Edit. Autorul eram eu la plugin, ideea: Viper.


VAND / MODIFIC / CREEZ [AMXX]

Creez orice plugin LEVEL MOD pentru orice MOD de CS.
Contact: sef_yontu


Last edited by YONTU on 25-07-2015, 12:24:34; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
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: 25-07-2015, 12:23:48 | Translate post to: ... (Click for more languages)

Mi-am dat seama nu ai vz ca am scris sus ^_^
EDIT:Varianta corecta .
Spoiler:



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
xDanny.
[Banned user]


Banned


Status: Offline
(since 26-07-2015 01:01)
Joined: 12 Aug 2014
Posts: 5, Topics: None
Location: Moldova, Republic of

Reputation: 13.2
Votes: 1

Post Posted: 26-07-2015, 02:49:39 | Translate post to: ... (Click for more languages)

cind cumpar he numi da chiar si atunci cind nu e last hhuman
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: 26-07-2015, 13:23:20 | Translate post to: ... (Click for more languages)

nu era conditia pusa - greseala mea.
Spoiler:



Retired from Amxmodx

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

[.: ZMGO.FREAKZ.RO :.]



Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516, Topics: 71
Location: Brasov

Reputation: 1144
Votes: 95

Post Posted: 27-07-2015, 16:51:21 | Translate post to: ... (Click for more languages)

Yontu de la cine a venit prima oara pluginu? Ia zi..
Cand erai pe mes, ti-am zis am facut un plugin mic, si avea bug ca nu stergea he de fiecare data, si nu eu ti-am spus sa ma ajuti sa fixezi?Na ca stiam ca te pricepi. Tot pluginu nu a venit de la mine? cand ti lam dat pe mes.... ce tot atata abereli. O sa modific autoru mare branza... dar de la mine a inceput pluginu.

0 0
  
Back to top
View user's profile Send private message
YONTU
[Banned user]


Banned


Status: Offline
(since 06-08-2015 14:49)
Joined: 16 Feb 2015
Posts: 30, Topics: 5
Location: Gura Humorului, Suceava

Reputation: -6
Votes: 2

 
Post Posted: 27-07-2015, 17:31:16 | Translate post to: ... (Click for more languages)

Poate ca de la tine o fi inceput toata ideea asta, dar am precizat mai sus. Insa eu ti l-am facut de la 0. Atat.

VAND / MODIFIC / CREEZ [AMXX]

Creez orice plugin LEVEL MOD pentru orice MOD de CS.
Contact: sef_yontu
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
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  
Go to page 1, 2  Next    


The time now is 25-04-2024, 19:03:26
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