Cerere Plugin DR [Abilitati Admini]

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
SimeriaIonut
Fost moderator
Fost moderator
Posts: 247
Joined: 17 Apr 2010, 14:28
Detinator Steam: Da
Detinator server CS: DR2.INDUNGI.RO
SteamID: _lvl4nticore_
Reputatie: Fost moderator ajutator
Location: Copenhagen, Denmark
Has thanked: 13 times
Been thanked: 22 times
Contact:

11 Sep 2010, 12:10

Buna ziua.

Am observat pe un server ca adminii au viata mai multa , si au avantaje , chiar nu mai stiu care sunt.

Dar in mod cert aveau viata mai multa adminii. Asta am vazut pe un server de DeathRun.Stie cineva cum se numeste pluginul ?
XMAS.INDUNGI.RO # Official Christmas Mod 2021 [Gifts Mod] [VIP][+++]
User avatar
T.Daniel
Fost moderator
Fost moderator
Posts: 1222
Joined: 03 May 2009, 10:31
Detinator Steam: Nu
Reputatie: Fost Membru Club eXtreamCS (o luna)
Nume anterior : XioNe
Fost moderator
Has thanked: 34 times
Been thanked: 58 times
Contact:

20 Sep 2010, 16:09

Subiect mutat in cereri de pluginuri.
Yahoo Messenger: sf_daniel2010
User avatar
3ndys
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 13 Jul 2010, 14:42
Detinator Steam: Da
Reputatie: Ban 3 luni !
Location: Medgidia , Constanta.
Has thanked: 45 times
Been thanked: 26 times
Contact:

23 Sep 2010, 16:32

pluginul se numeste : Super admin

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>

new cvar_admin_hp1, cvar_admin_arm1, cvar_admin_spd1
new cvar_admin_hp2, cvar_admin_arm2, cvar_admin_spd2
new cvar_admin_hp3, cvar_admin_arm3, cvar_admin_spd3
new cvar_admin_hp4, cvar_admin_arm4, cvar_admin_spd4
new cvar_admin_hp5, cvar_admin_arm5, cvar_admin_spd5

#define CLASS 5

new const g_class[5][] =
{
   "bcdefim",
   "cefim",
   "b",
   "bcdefijkmnopqrt",
   "bcdefijkm"
}

new gFlagsVal[sizeof g_class]

    cvar_admin_hp1 = register_cvar("admin_hp1", "200")
    cvar_admin_arm1 = register_cvar("admin_armor1", "200")
    cvar_admin_spd1 = register_cvar("admin_speed1", "270.0")

    cvar_admin_hp2 = register_cvar("admin_hp2", "175")
    cvar_admin_arm2 = register_cvar("admin_armor2", "175")
    cvar_admin_spd2 = register_cvar("admin_speed2", "260.0")

    cvar_admin_hp3 = register_cvar("admin_hp3", "150")
    cvar_admin_arm3 = register_cvar("admin_armor3", "150")
    cvar_admin_spd3 = register_cvar("admin_speed3", "250.0")

    cvar_admin_hp4 = register_cvar("admin_hp4", "122")
    cvar_admin_arm4 = register_cvar("admin_armor4", "122")
    cvar_admin_spd4 = register_cvar("admin_speed4", "290.0")

    cvar_admin_hp5 = register_cvar("admin_hp5", "120")
    cvar_admin_arm5 = register_cvar("admin_armor5", "120")
    cvar_admin_spd5 = register_cvar("admin_speed5", "280.0")

    for(new i = 0; i < sizeof g_class; i++)
    gFlagsVal = read_flags(g_class)
}

public fw_PlayerSpawn_Post(id)
{
    if(!is_user_alive(id))
        return PLUGIN_HANDLED

    if(!is_user_admin(id))
    {
        return PLUGIN_HANDLED
    }
    
    if(get_user_flags(id) == gFlagsVal[0])
    {
        fm_set_user_health(id, get_pcvar_num(cvar_admin_hp1))
        fm_set_user_armor(id, get_pcvar_num(cvar_admin_arm1))
    }
    else if(get_user_flags(id) == gFlagsVal[1])
    {
        fm_set_user_health(id, get_pcvar_num(cvar_admin_hp2))
        fm_set_user_armor(id, get_pcvar_num(cvar_admin_arm2))
    }
    else if(get_user_flags(id) == gFlagsVal[2])
    {
        fm_set_user_health(id, get_pcvar_num(cvar_admin_hp3))
        fm_set_user_armor(id, get_pcvar_num(cvar_admin_arm3))
    }
    else if(get_user_flags(id) == gFlagsVal[3])
    {
        fm_set_user_health(id, get_pcvar_num(cvar_admin_hp4))
        fm_set_user_armor(id, get_pcvar_num(cvar_admin_arm4))
    }
    else if(get_user_flags(id) == gFlagsVal[4])
    {
        fm_set_user_health(id, get_pcvar_num(cvar_admin_hp5))
        fm_set_user_armor(id, get_pcvar_num(cvar_admin_arm5))
    }
    else
    {
        return PLUGIN_HANDLED
    }

    return PLUGIN_HANDLED
}

public fw_PlayerPreThink(id)
{
    if(!is_user_alive(id))
        return PLUGIN_HANDLED

    if(!is_user_admin(id))
    {
        return PLUGIN_HANDLED
    }

    if(get_user_flags(id) == gFlagsVal[0])
    {
        fm_set_user_maxspeed(id, get_pcvar_float(cvar_admin_spd1))
    }
    else if(get_user_flags(id) == gFlagsVal[1])
    {
        fm_set_user_maxspeed(id, get_pcvar_float(cvar_admin_spd2))
    }
    else if(get_user_flags(id) == gFlagsVal[2])
    {
        fm_set_user_maxspeed(id, get_pcvar_float(cvar_admin_spd3))
    }
    else if(get_user_flags(id) == gFlagsVal[3])
    {
        fm_set_user_maxspeed(id, get_pcvar_float(cvar_admin_spd4))
    }
    else if(get_user_flags(id) == gFlagsVal[4])
    {
        fm_set_user_maxspeed(id, get_pcvar_float(cvar_admin_spd5))
    }
    else
    {
        return PLUGIN_HANDLED
    }

    return PLUGIN_HANDLED
}

stock fm_set_user_health(id, health)
{
    (health > 0) ? set_pev(id, pev_health, float(health)) : dllfunc(DLLFunc_ClientKill, id)
}

stock fm_set_user_armor(index, armor) 
{
    set_pev(index, pev_armorvalue, float(armor))
}

stock fm_set_user_maxspeed(index, Float:speed = -1.0) 
{
    engfunc(EngFunc_SetClientMaxspeed, index, speed)
    set_pev(index, pev_maxspeed, speed)

    return PLUGIN_HANDLED
}
Ai primit un avertisment pentru semnatura.
soryn0011
Membru, skill 0
Membru, skill 0
Posts: 16
Joined: 21 Mar 2010, 09:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com!

07 Oct 2010, 22:05

ma da eroare la pluginu asta. altul plzz
User avatar
H3adShoT
Membru, skill +3
Membru, skill +3
Posts: 1254
Joined: 03 May 2009, 18:19
Detinator Steam: Da
CS Status: Nu mai incercati sa-mi furati contul!
Detinator server CS: Nimic
SteamID: PM
Reputatie: Restrictie moderator
Location: Hunedoara
Has thanked: 47 times
Been thanked: 92 times
Contact:

07 Oct 2010, 22:17

soryn0011 wrote:ma da eroare la pluginu asta. altul plzz
posteaza eroarea
Retras din activitate.
User avatar
staru7
Membru, skill 0
Membru, skill 0
Posts: 28
Joined: 15 Dec 2010, 11:58
Detinator Steam: Da
CS Status: <3 :O
Detinator server CS: true
SteamID: staru7
Contact:

16 Dec 2010, 01:27

Scuze pentru off topic, dar sunt interesat si eu de acest plugin
Eroarea :

Code: Select all

error 010: invalid function or declaration
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests