Counter-Strike 1.6 Download Forum

Counter-Strike Server RSS Feed atom+xml Counter-Strike Server RSS Feed Counter-Strike Server CsBesTiaL Top 100 BesTiaL Autentificare Inregistrare Profil Mesaje private FAQ Grupuri Counter-Strike
 Servere-le de Counter-Strike CsBesTiaL sunt Pornite
cs bestial
Custom Search
Get our toolbar! Download Counter-Strike 1.6 andoird application
[Tutorial] Modificare plugin amx_who
Du-te la pagina despre counter-strike
 
Creaza un subiect nou   Raspunde la subiect
Mesaj
Blacktouch
Site AdmiN
Site AdmiN
cs

Data Inscrierii: 15/Sep/2013
Mesaje: 1604

Mesaj

2014-09-16    cstrike [Tutorial] Modificare plugin amx_who


Citat:
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 9
new g_groupNames[MAX_GROUPS][] = {
"--- [1]Owner ---",
"--- [2]Co-Owner ---",
"--- [3]Maresal ---",
"--- [4]General ---",
"--- [5]Colonel ---",
"--- [6]Maior ---",
"--- [7]Sergent ---",
"--- [8]Soldat ---",
"--- [9]V.I.P ---"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"abcdefghijlmnopqrst",
"bcdefghijlmnopqrs",
"bcdefgijlmnopqr",
"bcdefgijmnop",
"bcdefgijmn",
"b",
"abeci"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("Amx_who", "1.0", "LaLeagane.ro")
register_concmd("amx_who", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
}
public cmdWho(id) {
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "Aici punem numele la server.")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "%s", g_groupNames[i])
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue[i]) {
console_print(id, "%s", name)
}
}
}
console_print(id, "- BesT ADMINS -")
return PLUGIN_HANDLED
}


Ceea ce noi trebuie sa modificam este

Aceasta

Citat:
"--- [1]Owner ---",
"--- [2]Co-Owner ---",
"--- [3]Maresal ---",
"--- [4]General ---",
"--- [5]Colonel ---",
"--- [6]Maior ---",
"--- [7]Sergent ---",
"--- [8]Soldat ---",
"--- [9]V.I.P ---"


Aceasta, Cate Grade dorim sa creem, anume cele de sus, avem 9 Grade trecem la MAX_Groups 9, avem 10 trecem 10.

Citat:
#define MAX_GROUPS 9


Si in final gradele.

Citat:
"abcdefghijklmnopqrstu",
"abcdefghijklmnopqrst",
"abcdefghijlmnopqrst",
"bcdefghijlmnopqrs",
"bcdefgijlmnopqr",
"bcdefgijmnop",
"bcdefgijmn",
"b",
"abcdg"


Citat:
console_print(id, "Aici punem numele la server.")


Si aici

Citat:
console_print(id, "Si aici")


Orice ce ati face nu uitati sa nu puneti [ , ] la ultimul acces de jos si ultimul rang, acelea le modificam dupa bunul plac. Gradele si accesele.
Cs Forum
Vezi profilul utilizatorului Expediaza mesaj privat
WwW.PlacePuB.Ro
WwW.PlacePuB.Ro
placepub




Mesaj

2014-09-16    cstrike




Cs Forum
Afiseaza mesajele despre Counter-Strike pentru a le previzualiza:    
Creaza un subiect nou   Raspunde la subiect    Counter Strike Forum - Tutoriale Counter-Strike 1.6 download -> Tutoriale Counter-Strike 1.6 cstrike Ora este GMT + 2 ore
Du-te la pagina despre counter-strike
Pagina 1 din 0

 
Mergi direct la pagina de counter-strike 1.6:  
Nu puteti crea un subiect nou In acest forum despre counter-strike
Nu puteti raspunde In subiectele acestui forum despre counter-strike
Nu puteti modifica mesajele proprii din acest forum despre counter-strike
Nu puteti sterge mesajele proprii din acest forum despre counter-strike
Nu puteti vota In chestionarele din acest forum despre counter-strike

Privacy Policy | Politica de Confidentialitate



 Safe Site

By Bogdan Maxim. Published in the Counter-strike 1.6 Download category