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

Looking for two plugins/mods


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dwartbg
New Member
Join Date: Feb 2023
Old 02-03-2023 , 18:17   Looking for two plugins/mods
Reply With Quote #1

Some servers that I played had the screen flash up in blue when making a frag. I am looking for that particular plugin or at least something similar. Something to indicate when you made a frag.

The other one is the classic rank system, somehow to make my game have a ranking system or the classic /top15; /rank command.

I am extremely grateful for finding about your forum today, I found all the plugins I've been looking for in ages, these two are the only ones remaining. Thanks in advance guys!!!
dwartbg is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-03-2023 , 20:18   Re: Looking for two plugins/mods
Reply With Quote #2

Is always good to mention for which game you need.
__________________
Marttt is offline
dwartbg
New Member
Join Date: Feb 2023
Old 02-03-2023 , 20:26   Re: Looking for two plugins/mods
Reply With Quote #3

Quote:
Originally Posted by Marttt View Post
Is always good to mention for which game you need.
I'm so sorry. I didn't realize this isn't only for Source games. I'm looking about such plugin for CS Source.
dwartbg is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 02-05-2023 , 12:56   Re: Looking for two plugins/mods
Reply With Quote #4

Quote:
Originally Posted by dwartbg View Post
Some servers that I played had the screen flash up in blue when making a frag. I am looking for that particular plugin or at least something similar. Something to indicate when you made a frag.
PHP Code:
#pragma semicolon 1
#pragma newdecls required

static const int
    FADE_CLR
[] = {0025563}, // Fade color (Red, Green, Blue, Alpha)
    
DURATION   500,             // Fade duration
    
HOLDTIME   0;               // Fade hold time

bool bProto;

public 
void OnPluginStart()
{
    
bProto GetFeatureStatus(FeatureType_Native"GetUserMessageType") == FeatureStatus_Available && GetUserMessageType() == UM_Protobuf;

    
HookEvent("player_death"Event_Death);
}

/*
#define USERMSG_RELIABLE   (1<<2)    //   4  Message will be set to reliable
#define USERMSG_INITMSG    (1<<3)    //   8  Message will be considered to be an initmsg
#define USERMSG_BLOCKHOOKS (1<<7)    // 128  Prevents the message from triggering SourceMod and Metamod hooks

#define FFADE_IN           0x0001    //   1  Just here so we don't pass 0 into the function
#define FFADE_OUT          0x0002    //   2  Fade out (not in)
#define FFADE_MODULATE     0x0004    //   4  Modulate (don't blend)
#define FFADE_STAYOUT      0x0008    //   8  Ignores the duration, stays faded out until new ScreenFade message received
#define FFADE_PURGE        0x0010    //  16  Purges all other fades, replacing them with this one
*/
public void Event_Death(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("attacker"));
    if(!
client || IsFakeClient(client))
        return;

    
Handle msg StartMessageOne("Fade"client132); // USERMSG_*
    
if(bProto)
    {
        
PbSetInt(msg,   "duration",  DURATION);
        
PbSetInt(msg,   "hold_time"HOLDTIME);
        
PbSetInt(msg,   "flags",     0x0001|0x0010); // FFADE_*
        
PbSetColor(msg"clr",       FADE_CLR);
    }
    else
    {
        
BfWriteShort(msgDURATION);
        
BfWriteShort(msgHOLDTIME);
        
BfWriteShort(msg0x0001|0x0010); // FFADE_*
        
BfWriteByte(msg,  FADE_CLR[0]);
        
BfWriteByte(msg,  FADE_CLR[1]);
        
BfWriteByte(msg,  FADE_CLR[2]);
        
BfWriteByte(msg,  FADE_CLR[3]);
    }
    
EndMessage();

__________________

Last edited by Grey83; 02-05-2023 at 13:00.
Grey83 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 21:45.


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