User
Pass
2FA
 
 

Give Free HE Grenade 1.0

 
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 Message910
FarulNUMOARE
[Banned user]


Banned


Status: Offline
(since 06-09-2013 11:05)
Joined: 14 Aug 2013
Posts: 264, Topics: 37
Location: Constanta.

Reputation: -100.7
Votes: 10

 
Post Posted: 05-09-2013, 08:16:37 | Translate post to: ... (Click for more languages)

Descriere: Acest plugin ofera tuturor jucatorilor grenade HE gratis dupa un anumit timp, daca acestia nu au deja una in inventar (plugin-ul a fost facut la cererea unui utilizator).

Nume: Give Free HE Grenade.
Versiune: 1.0.
Autor: KronoS # GG.

Descarcare:
Code:
#include < amxmodx >
#include < cstrike >
#include < fun >

new g_Delay, g_contor[ 33 ];

public plugin_init( )
{
   register_plugin( "Give Free HE Grenade", "1.0", "KronoS # GG" );

   g_Delay = register_cvar( "freehe_delay", "10" );
}

public client_putinserver( index )
{
   g_contor[ index ] = 0;
   set_task( 1.0, "Func_GiveHe", index, _, _, "b" );
}

public Func_GiveHe( index )
{
   if ( !is_user_alive( index ) || cs_get_user_bpammo( index , CSW_HEGRENADE ) > 0 )
      return;

   if ( g_contor[ index ] > 0 )
   {
      set_hudmessage( 0, 255, 0, 0.02, 0.48, 0, 1.0, 1.0 );
      show_hudmessage( index, "Vei primi un HE gratis in %i secunde...", g_contor[ index ] );
      g_contor[ index ]--;
      return;
   }
   else
   {
      set_hudmessage( 0, 255, 0, 0.02, 0.48, 0, 1.0, 1.0 );
      show_hudmessage( index, "Ai primit un HE gratis!" );
      g_contor[ index ] = g_Delay;
              give_item( index, "weapon_hegrenade" );
   }
}


Instalare:
1. Fisierul give_free_hegrenade.sma il puneti in addons/amxmodx/scripting.
2. Fisierul give_free_hegrenade.amxx il puneti in addons/amxmodx/plugins.
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Code:
give_free_hegrenade.amxx


Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):
freehe_delay 10 ;dupa cat timp primeste jucatorul o grenada gratis.

Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
- cstrike
- fun

Imagini:






JB.FREAKZ.RO este numarul 1!
0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by Happy =]], 03 December 2013 21:06



 
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  


The time now is 06-08-2025, 00:29:23
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password