Raised This Month: $32 Target: $400
 8% 

[Request] Who is Carrying the Bomb? (CS 1.6)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-05-2020 , 16:57   [Request] Who is Carrying the Bomb? (CS 1.6)
Reply With Quote #1

Hello People i've been following this community for quite a while mostly using your cs 1.6 plugins and it's been awesome.

I was wondering if you could help me with a very simple ( i guess) request.

I would like a plugin that does:

At the beginning of every round a really small and non intrusive HUD telling all Terrorist who is carrying the bomb.
Eg: round starts, we are in freezetime(or not), a small hud text at the left side of the screen below the buying icon says "username" is carrying the bomb! for like 5 seconds.

i've been searching this plugin without success

if anyone can help me, i would be really grateful.
Ark_Procession is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 06-05-2020 , 18:41   Re: [Request] Who is Carrying the Bomb? (CS 1.6)
Reply With Quote #2

look at this plugin
https://forums.alliedmods.net/showthread.php?t=241320
tarsisd2 is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-05-2020 , 20:32   Re: [Request] Who is Carrying the Bomb? (CS 1.6)
Reply With Quote #3

Quote:
Originally Posted by tarsisd2 View Post
Hi! thank you so much for answering and so fast!


Unfortunately i really want to keep it simple, since that mods adds more functionalities and needs a lot of things installed like okapi, things i would not like to have in my server.

my amxmodx installation is not like any other, some plugins won't work and i really don't know why.
so there is a great chance i will experiment crashes.

I only use a couple of mods to keep it clean.

as i said i would rather know if somehow is a posiblity to simply create this function i say only with code in a sma?

thank you for your time again!!
Ark_Procession is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-06-2020 , 17:38   Re: [Request] Who is Carrying the Bomb? (CS 1.6)
Reply With Quote #4

Quote:
Originally Posted by Ark_Procession View Post
Hi! thank you so much for answering and so fast!


Unfortunately i really want to keep it simple, since that mods adds more functionalities and needs a lot of things installed like okapi, things i would not like to have in my server.

my amxmodx installation is not like any other, some plugins won't work and i really don't know why.
so there is a great chance i will experiment crashes.

I only use a couple of mods to keep it clean.

as i said i would rather know if somehow is a posiblity to simply create this function i say only with code in a sma?

thank you for your time again!!
if anyone else is willing to make this plugin let me know! thank you very much!
Ark_Procession is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-06-2020 , 22:29   Re: [Request] Who is Carrying the Bomb? (CS 1.6)
Reply With Quote #5

PHP Code:

#include <amxmodx>
#include <engine>

new const Version[] = "0.1";

#define IsPlayer(%1)    (1<=%1<=32)

public plugin_init() 
{
    
register_plugin"Bomb Spawn HUD" Version "bugsy" );
    
    
register_logevent"SpawnedWithBomb" "2=Spawned_With_The_Bomb" );
}

public 
SpawnedWithBomb()
{    
    
set_task0.1 "DelayC4" );
}

public 
DelayC4()
{
    new 
szName32 ] , iBomb id;
    
    
iBomb find_ent_by_class( -"weapon_c4" );
    
id entity_get_edictiBomb EV_ENT_owner );

    if ( 
IsPlayerid ) )
    {
        
get_user_nameid szName charsmaxszName ) );
        
set_hudmessage170 255 255 , -1.0 0.30 0.0 5.0 );
        
show_hudmessage"%s has the bomb" szName );
    }

__________________

Last edited by Bugsy; 06-06-2020 at 22:51.
Bugsy is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 06-07-2020 , 17:29   Re: [Request] Who is Carrying the Bomb? (CS 1.6)
Reply With Quote #6

Bugsy, i cannot thank you enough for this! It works perfectly!

I have changed the color of the hud text to green!

For those who don't know a thing about coding like me:

Change line 30 from:
set_hudmessage( 170 , 255 , 255 , -1.0 , 0.30 , 0 , 0.0 , 5.0 );

to:
set_hudmessage( 0 , 255 , 0 , -1.0 , 0.30 , 0 , 0.0 , 5.0 );

Last edited by Ark_Procession; 06-07-2020 at 17:30.
Ark_Procession is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode