AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Looking for two plugins/mods (https://forums.alliedmods.net/showthread.php?t=341631)

dwartbg 02-03-2023 18:17

Looking for two plugins/mods
 
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!!!

Marttt 02-03-2023 20:18

Re: Looking for two plugins/mods
 
Is always good to mention for which game you need.

dwartbg 02-03-2023 20:26

Re: Looking for two plugins/mods
 
Quote:

Originally Posted by Marttt (Post 2798655)
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.

Grey83 02-05-2023 12:56

Re: Looking for two plugins/mods
 
Quote:

Originally Posted by dwartbg (Post 2798650)
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();




All times are GMT -4. The time now is 03:23.

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