Raised This Month: $51 Target: $400
 12% 

[L4D2] help dude


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
insobniut2004
Member
Join Date: Feb 2022
Old 04-15-2022 , 09:56   [L4D2] help dude
Reply With Quote #1

I want to add a survivor counter

in chat and hint

example:
PrintHintTextToAll("%N Has Killed %N \n %d Alive Survivors", attacker, victim, sSurvivors);
is correct?

» Discord: Jhxir#4898
» Steam: https://steamcommunity.com/id/insbobniut/
» Youtube: https://www.youtube.com/channel/UCHa...pjFPXkFYkW5PpA
insobniut2004 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 04-15-2022 , 10:03   Re: [L4D2] help dude
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=228647

Last edited by alasfourom; 05-21-2022 at 20:11.
alasfourom is offline
insobniut2004
Member
Join Date: Feb 2022
Old 04-15-2022 , 17:37   Re: [L4D2] help dude
Reply With Quote #3

Could you help me? I want to put- %N killed %N %d survivors alive

in this plugin pleas
https://forums.alliedmods.net/showthread.php?t=129310
insobniut2004 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 04-15-2022 , 21:23   Re: [L4D2] help dude
Reply With Quote #4

I didn't get what you mean!

Quote:
Could you help me? I want to put- %N killed %N %d survivors alive

in this plugin pleas
https://forums.alliedmods.net/showthread.php?t=129310
If you want to add your line, here it is, just edit these lines to this

PHP Code:
public EVENT_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast

    new 
client GetClientOfUserIdGetEventIntevent"userid" )); 
     
    if ( 
IsTeamSurvivorclient )) 
    { 
        new 
counT CountSurvivor(); 
         
        if ( 
counT 
        { 
           
PrintHintTextToAll"Killed %N \n %d Alive Survivors"clientcounT ); 
        } 
    } 

If you want to combine both plugins together I think that's non sense

Last edited by alasfourom; 04-15-2022 at 21:24.
alasfourom is offline
insobniut2004
Member
Join Date: Feb 2022
Old 04-16-2022 , 09:44   Re: [L4D2] help dude
Reply With Quote #5

Quote:
Originally Posted by alasfourom View Post
I didn't get what you mean!



If you want to add your line, here it is, just edit these lines to this

PHP Code:
public EVENT_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast

    new 
client GetClientOfUserIdGetEventIntevent"userid" )); 
     
    if ( 
IsTeamSurvivorclient )) 
    { 
        new 
counT CountSurvivor(); 
         
        if ( 
counT 
        { 
           
PrintHintTextToAll"Killed %N \n %d Alive Survivors"clientcounT ); 
        } 
    } 

If you want to combine both plugins together I think that's non sense

your code is fine but i would like to do this

If you can create a plugin I would be very grateful

-hunter killed zoey 7 remaining survivors

if it is possible to put it in chat in the hud it would be very helpful

Last edited by insobniut2004; 04-16-2022 at 09:46.
insobniut2004 is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 08-13-2022 , 13:29   Re: [L4D2] help dude
Reply With Quote #6

Quote:
Originally Posted by insobniut2004 View Post
your code is fine but i would like to do this

If you can create a plugin I would be very grateful

-hunter killed zoey 7 remaining survivors

if it is possible to put it in chat in the hud it would be very helpful
Attached Files
File Type: sp Get Plugin or Get Source (L4D_Counting_Survivors.sp - 98 views - 2.1 KB)
__________________
alasfourom is offline
weffer
Member
Join Date: Oct 2020
Old 08-14-2022 , 14:22   Re: [L4D2] help dude
Reply With Quote #7

Quote:
Originally Posted by insobniut2004 View Post
your code is fine but i would like to do this

If you can create a plugin I would be very grateful

-hunter killed zoey 7 remaining survivors

if it is possible to put it in chat in the hud it would be very helpful
check this post https://forums.alliedmods.net/showthread.php?p=2662153
weffer is offline
Reply



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 08:04.


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