Plugin Bombă

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
AltReal
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 25 Jun 2014, 21:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

26 Jun 2014, 22:15

Descriere plugin cerut: În momentul în care, fiind cu c4 în mână și apăsând click stânga pentru plantare, va apărea acel mesaj.
Image
Alte informatii: Aș vrea o versiune în engleză.
RoyalServer
User avatar
sUperstar
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3321
Joined: 01 Mar 2013, 23:08
Detinator Steam: Da
Reputatie: Restrictie moderator [abuz de functie]
Fost eXtream mod
Utilizator neserios (tepar!)
Has thanked: 42 times
Been thanked: 97 times

27 Jun 2014, 08:36

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include < amxmodx >
#include < hamsandwich >
#include < fakemeta >

#pragma semicolon 1

new const
	PLUGIN_NAME[ ] 		= "Bomb",
	PLUGIN_VERSION[ ] 	= "1.0";
	
new Float:g_fBlockC4;
new bool:CanPlant = false;

new SyncHudMessage;
new cvar_spawnblock;
	
public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, "Askhanar" );
	cvar_spawnblock = register_cvar( "amx_nobmbplant", "110" );

	register_event( "HLTV", "ev_HookRoundStart", "a", "1=0", "2=0" );
	register_event( "TextMsg", "evBombMessage", "b", "2=#C4_Plant_At_Bomb_Spot" ); 

	RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_c4", "hamPrimaryAttackC4" );
	SyncHudMessage = CreateHudSyncObj( );

	set_task( 1.0, "CheckBombTime", _, _, _, "b", 0 );
}

public ev_HookRoundStart( )
{
	g_fBlockC4 = 0.0;
	g_fBlockC4 = get_gametime( );
	CanPlant = false;
}


public evBombMessage( id ) 
{ 
	if( CanPlant == false ) 
	{
		client_print( id, print_center, "" );
	}
}

public hamPrimaryAttackC4( iEnt )
{ 
	if( CanPlant == false )
	{
		new id = pev( iEnt, pev_owner );
		set_hudmessage( 0, 255, 0, -1.0, 0.45, 0, 0.0, 8.0, 0.0, 0.1, 4 );
		ShowSyncHudMsg( id, SyncHudMessage, "Mai sunt %.1f secunde pana vei putea planta bomba !",   get_pcvar_num( cvar_spawnblock ) - ( get_gametime( ) - g_fBlockC4 ) );
		return HAM_SUPERCEDE;
	}

	return HAM_IGNORED; 
}

public CheckBombTime( )
{
	if( CanPlant == false )
	{
		if( ( get_gametime( ) - g_fBlockC4 ) > float( get_pcvar_num( cvar_spawnblock ) ) )
		{
			set_hudmessage( 255, 0, 0, -1.0, 0.45, 2, 0.0, 8.5, 0.0, 5.0, 4 );
			ShowSyncHudMsg( 0, SyncHudMessage, "Bomba este pe cale sa explodeze !^nGrabiti-va!" );
			CanPlant = true;
			
		}
	}
		
}
RIPPLE FAUCET - Castiga pana la 1 Ripple pe zi!
PuB.
Membru, skill 0
Membru, skill 0
Posts: 32
Joined: 17 Mar 2014, 20:58
Detinator Steam: Da
CS Status: Populez CS.RGAMERS.NET #
Detinator server CS: CS.RGAMERS.NET / Fur
Location: Tot acolo..:X
Has thanked: 1 time
Contact:

29 Jun 2014, 00:53

Download Alte informatii in arhiva ! :)
Nick : mR.JuNkYe;x
Grad : Administrator @ rGamers.NeT b-)
Y!M : [email protected]
Steam : JuNNNkYe2
Forum : http://www.rgamers.net
Server : CS.RGAMERS.NET
Copyright © 2014 JuNNNkYe.All rights reserved.

Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests