REGISTER











Ultimate_Who by Evanescence
#1
Buna. Am creat singura acest plugin, si chiar nu am nevoie sa aud cum ca "plagiez" sau mai stiu eu ce. Eu joc cs de multi ani si nu permit nimanui sa ma jigneasca in legatura cu munca mea.

Acum, acest ultimate who are accese facute de mine pentru a nu exista neintelegeri cum ca "eu nu am acces la gag desi am grad mare" sau mai stiu eu ce.

Acese:
Code:
"abcdefghijklmnopqrstxu",
    "abcdefghijklmnopqrstu",
    "abcdefghijmnopqrtu",
    "bcdefghijmnopqtu",
    "bcdefijmnopqtu",
    "bcdefijmnopt",
    "bcdefijmnt",
    "bcdefijmt",
    "bceijmt",
    "abi",
    "b"

Contine Gradele:

Code:
    "# FondatoR #",
    "# OwNer #",
    "# Co-Owner #",
    "# VeteRan #",
    "# MareSal #",
    "# GeneraL #",
    "# ColoNel #",
      "# Maior #",
      "# SergeNt #",
      "# V.I.P #",
    "# Slot #"

SMA file:

[code]#include
#include

#define PLUGIN "ULTIMATE WHO"
#define VERSION "1.1"
#define AUTHOR "Evanescence"

#define CharsMax(%1) sizeof %1 - 1
#define time_shower 1.0

#define GROUPS_NAME 11
#define GROUPS_ACCESS 11

#define RRR 255
#define GGG 255
#define BBB 255
#define time_hud 12.0

#define motd_msg "Admin's Online"

#define who_meniu_ad_group_msg "-=[Admin's]=- -=[Online]=-^n"
#define who_meniu_admin_msg "-=[Admin's]=- -=[Online]=-^n^n"

#define who_meniu_ad_group_msg_bottom "^nPt a esi apasati 0 sau 5"
#define who_meniu_admin_msg_bottom "^nPt a esi apasati 0 sau 5"

#define who_console_top "=========== Admini On pe server ==========="
#define who_console_bottom "==========================================="

new GroupNames[GROUPS_NAME][] = {
"# FondatoR #",
"# OwNer #",
"# Co-Owner #",
"# VeteRan #",
"# MareSal #",
"# GeneraL #",
"# ColoNel #",
"# Maior #",
"# SergeNt #",
"# V.I.P #",
"# Slot #"
}

new GroupFlags[GROUPS_ACCESS][] = {
"abcdefghijklmnopqrstxu",
"abcdefghijklmnopqrstu",
"abcdefghijmnopqrtu",
"bcdefghijmnopqtu",
"bcdefijmnopqtu",
"bcdefijmnopt",
"bcdefijmnt",
"bcdefijmt",
"bceijmt",
"abi",
"b"
}

new GroupFlagsValue[GROUPS_NAME]

new who_type, who_typemeniu, who_typtable

public plugin_init()
{

register_plugin(PLUGIN, VERSION, AUTHOR)

for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])

register_clcmd("say", "cmdSay")
register_clcmd("say_team", "cmdSay")

who_type = register_cvar("cmd_who","1")
who_typemeniu = register_cvar("who_typemeniu","1")
who_typtable = register_cvar("who_typetable","2")
}

public cmdSay(id)
{
new say[192]
read_args(say,192)
if(( contain(say, "/who") != -1 || contain(say, "/admin") != -1 || contain(say, "/admins") != -1))
set_task(time_shower,"cmdULTMWho",id)
return PLUGIN_CONTINUE
}

public cmdULTMWho(id)
{
switch(get_pcvar_num(who_type))
{
case 1: who_meniu(id)

case 2: who_motd(id)

case 3: who_table(id)

case 4: who_hud(id)

case 5: who_console(id)

}
return 0
}

who_meniu(id)
{
switch(get_pcvar_num(who_typemeniu))
{
case 1: who_meniu_admin_groups(id)

case 2: who_meniu_admin(id)
}
return 0
}
who_meniu_admin_groups(id)
{
new sPlayers[32], iNum, iPlayer
new sName[32]
new szMenu[256], nLen, keys

nLen = format(szMenu[nLen], 255, who_meniu_ad_group_msg)
get_players(sPlayers, iNum, "ch")

for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
{
nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", GroupNames[p_of_pw])

for(new a = 0; a < iNum ; a++)
{
iPlayer = sPlayers[a]

if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
{
get_user_name(iPlayer, sName, sizeof sName - 1)
nLen += format(szMenu[nLen], 255-nLen,"\w%s^n", sName)
}
}
}
nLen += format(szMenu[nLen], 255-nLen, who_meniu_ad_group_msg_bottom)
keys = (1
#2
ms edit!
#3
Topic Closed ! Avem un model de respectat !



Powered by MyBB All rights reserved
Developed with for FASTCS 2011 - 2024 FASTCS