AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Searching Plugins, i can't found (https://forums.alliedmods.net/showthread.php?t=343867)

jesusaliso 09-11-2023 05:46

Searching Plugins, i can't found
 
Hi guys, I'm looking for 3 plugins, I've been looking for a long time and I can't find them.

The first is the complement of giving 1 AWP weapon per team to random players, also to be able to give the AWP requires a minimum of 10 players.

The second is an advanced statistics plugin that shows hud and chat messages to players about their damage, etc.

The third is the complement to improve the top15, the most updated ranking design

Thanks and sorry for the inconvenience

Siska1 09-11-2023 08:37

Re: Searching Plugins, i can't found
 
Code:

#include <amxmodx>
#include <cstrike>

#if !defined CSI_AWP
        #error "This plugin requires AMXX 1.9 or a newer version."
#endif

const MAX_AWPS_PER_TEAM = 3
const MIN_PLAYERS = 10

new g_iAWPCount[CsTeams]

public plugin_init()
{
        register_plugin("Max AWPs Per Team", "1.1", "OciXCrom")
        register_logevent("OnRoundStart", 2, "0=World triggered", "1=Round_Start")
}

public OnRoundStart()
{
        g_iAWPCount[CS_TEAM_CT] = 0
        g_iAWPCount[CS_TEAM_T] = 0
}

public CS_OnBuy(id, iItem)
{
        if(iItem == CSI_AWP)
        {
                if(get_playersnum() < MIN_PLAYERS)
                {
                        client_print(id, print_center, "You cannot purchase an AWP when there are less than %i players in the server.", MIN_PLAYERS)
                        return PLUGIN_HANDLED
                }

                new CsTeams:iTeam = cs_get_user_team(id)

                if(g_iAWPCount[iTeam] == MAX_AWPS_PER_TEAM)
                {
                        client_print(id, print_center, "Your team cannot purchase more than %i AWPs per round.", MAX_AWPS_PER_TEAM)
                        return PLUGIN_HANDLED
                }

                g_iAWPCount[iTeam]++
        }

        return PLUGIN_CONTINUE
}


jesusaliso 09-11-2023 10:56

Re: Searching Plugins, i can't found
 
Quote:

Originally Posted by Siska1 (Post 2809969)
Code:

#include <amxmodx>
#include <cstrike>

#if !defined CSI_AWP
        #error "This plugin requires AMXX 1.9 or a newer version."
#endif

const MAX_AWPS_PER_TEAM = 3
const MIN_PLAYERS = 10

new g_iAWPCount[CsTeams]

public plugin_init()
{
        register_plugin("Max AWPs Per Team", "1.1", "OciXCrom")
        register_logevent("OnRoundStart", 2, "0=World triggered", "1=Round_Start")
}

public OnRoundStart()
{
        g_iAWPCount[CS_TEAM_CT] = 0
        g_iAWPCount[CS_TEAM_T] = 0
}

public CS_OnBuy(id, iItem)
{
        if(iItem == CSI_AWP)
        {
                if(get_playersnum() < MIN_PLAYERS)
                {
                        client_print(id, print_center, "You cannot purchase an AWP when there are less than %i players in the server.", MIN_PLAYERS)
                        return PLUGIN_HANDLED
                }

                new CsTeams:iTeam = cs_get_user_team(id)

                if(g_iAWPCount[iTeam] == MAX_AWPS_PER_TEAM)
                {
                        client_print(id, print_center, "Your team cannot purchase more than %i AWPs per round.", MAX_AWPS_PER_TEAM)
                        return PLUGIN_HANDLED
                }

                g_iAWPCount[iTeam]++
        }

        return PLUGIN_CONTINUE
}


Thank you very kind, if you know of any other complement I will be pending. Can you add me on discord?


All times are GMT -4. The time now is 00:12.

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