Grade admini

Categoria unde puteti cere pentru tutoriale.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Master22
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 08 Jul 2012, 23:42
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

08 Jul 2012, 23:44

Deci vreau aceste grade in users.ini cum fac sa le pun, iar cand dau in console amx_who vreau sa apara asa si sub fiecare grad sa scrie numele cand e vreun admin online
Fondator
Owner
Global Moderator
Moderator
Helper
Slot
va rog !!
Aen
User avatar
Andrei.B
Fost administrator
Fost administrator
Posts: 6481
Joined: 17 Aug 2009, 08:15
Detinator Steam: Da
CS Status: Plecat pe mari si tari
Detinator server CS: Nu detin !
SteamID: andreybci94
Reputatie: Fost Membru Club eXtreamCS (o luna)
Fost Administrator
Nume anterior : bLack, Andrei,krusc
Contribuitor
Location: ConstanTa
Has thanked: 275 times
Been thanked: 556 times
Contact:

09 Jul 2012, 08:31

| Afiseaza codul
// Copyright © 2009 Echipa E-Like !
// www.e-like.ro

#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 7
new g_groupNames[MAX_GROUPS][] = {
"Fondator",
"Owner",
"Global Moderator",
"Moderator",
"Helper",
"Slot"

}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqtu",
"abcdefghijklmnopqr",
"abcdefghijklmnopt",
"bcdefghijmnqrst",
"b"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("Amx Who", "2.0", "No *mErCy*")
register_concmd("amx_who", "cmdWho", 0)
register_concmd("admin_who", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue = read_flags(g_groupFlags)
}
}
public cmdWho(id) {
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "===== ~ ADMINI ~ =====")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "===== %s =====", g_groupNames)
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue) {
console_print(id, "%s", name)
}
}
}
console_print(id, "===== ~ ADMINI ~ =====")
return PLUGIN_HANDLED
}

Mereu in suflet culorile ( Roş -Albastru )
Image
ImageImage
Master22
Membru, skill 0
Membru, skill 0
Posts: 5
Joined: 08 Jul 2012, 23:42
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

09 Jul 2012, 09:01

Man si unde le pun si cum le pun ?
User avatar
Alexxandra
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 23 Oct 2011, 01:27
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: negociu1
Has thanked: 8 times
Been thanked: 18 times
Contact:

31 Jul 2012, 22:16

in Addons/Config/User.ini :d
Image
I love you because you love me,
I hate you because you love me,
I hate me because I love you!

I'm everything I am,
Because you loved me! :*:*:*8-|8-|


Vând server Half-life 18 sloturi !! / Vand Steam-uri !!! 5 euro . /
User avatar
darkwing
Membru, skill +1
Membru, skill +1
Posts: 471
Joined: 22 Nov 2007, 19:18
Detinator Steam: Da
Location: Craiova
Has thanked: 1 time
Been thanked: 1 time
Contact:

16 Aug 2012, 00:25

Ce ti-a dat el mai sus este codul unul plugin tu trebuie sa creezi un fisier nume.sma in care sa adaugi codul de mai sus si il compilezi cu un compiler amxmodx.dupa accea te duci in plugins.ini si adaugi "numeleales.amxx"
Acolo ai si niste grade...in functie de ce acces ii vei da unui user in users.ini el va avea un grad
de ex.
helper-"bcdefghijmnqrst"
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests