[Cerere Plugin] Remove Entitati

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1196
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

24 Feb 2023, 00:03

Plugin Cerut: Remove entitati
Descriere (adica ce face el mai exact): Doresc un plugin care pe hartile ce au prefixul fy_ sa stearga armele mac10 & tmp de pe jos.
Ai cautat pluginul?(daca da, precizeaza cum): Da... Nu am gasit
Serverul impune conditii strict HLDS/REHLDS?: rehdls
Necesita mod special?: nop
Versiune AMXX Server: 1.9.0
RoyalServer
User avatar
CyBer[N]eTicK
Membru, skill +1
Membru, skill +1
Posts: 190
Joined: 29 May 2020, 05:35
Detinator Steam: Da
CS Status: Strong & Original
Detinator server CS: BB.BLACKGAMES.RO
SteamID: /id/cybernetick_cbk/
Fond eXtream: 0
Location: Albania, tirana
Discord: cybernetick_cbk
Has thanked: 21 times
Been thanked: 18 times
Contact:

24 Feb 2023, 11:55

Poftim.

Code: Select all

// Weapon Remover
// by: Marky_UK
//
// Required Modules:
// amxmodx
// amxmisc
// engine
//
// Instructions:
// Create a folder called "WeaponRemover" at "addons/amxmodx/configs"
// Inside the folder, create a text file "<mapname>.txt"
// Inside the "<mapname>.txt" file, add the list of weapons you want removing
//
// Example:
// To block AWP's and scouts on the map, fy_snow
// Create a text file, "fy_snow.txt" in "addons/amxmodx/configs/WeaponRemover"
// Inside "fy_snow.txt" type:
//                            awp
//                            scout

#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "Weapon Remover"
#define AUTHOR "Marky_UK"
#define VERSION "1.00"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    new filepath[256]
    new mapfile[256]
    new mapname[256]
    get_mapname(mapname, sizeof(mapname) -1)
    get_configsdir(filepath, sizeof(filepath) -1)
    format(filepath, 255, "%s/WeaponRemover", filepath)
    format(mapfile, 255, "%s/%s.txt", filepath, mapname)
    new filepointer = fopen(mapfile,"r")
    if(filepointer == 0)
    {
        return PLUGIN_HANDLED;
    }

    new mapfiledata[681],weapon[13]
    while(fgets(filepointer,mapfiledata,sizeof(mapfiledata) -1))
    {
        trim(mapfiledata)
        parse(mapfiledata,weapon,12)
        new WeaponModel[26]
        format(WeaponModel,sizeof(weapon) + 13,"models/w_%s.mdl",weapon)

        new WepID = -1
        while((WepID = find_ent_by_model(WepID,"armoury_entity",WeaponModel)) != 0)
        {
            remove_entity(WepID)
        }
    }
    fclose(filepointer)
    return PLUGIN_HANDLED
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 40 guests