Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Atentie! Aceasta este versiunea LowFi a topicului! Click
aici
pentru varianta originala.
Plugin who
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Counter-Strike: Help zone
Author
Message
2783
.::z3r0::.
[Banned user]
Posted: 23-02-2018, 16:38:28
| Translate post to:
... (
Click for more languages
)
@P!C@
@Twister
Salut vreau si eu un plugin who
cand scrii who sau /who
sa iti arate gradele si adminii online uite gradele
Vreau .sma .amxx si code plugins.ini !
Spoiler:
Code:
;|==============================================================================================|
;|---===[ Fondator ]===--- "abcdefghijklmnopqrstu" "a"
;|==============================================================================================|
;|==============================================================================================|
;|---===[ OwNeR ]===--- "abcdefghijlmnopqrstu" "a"
;|==============================================================================================|
;|==============================================================================================|
;|---===[ Co-Owners ]===--- "bcdefghijlmnopqrstu" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ GoDs ]===--- "bcdefghijmnopqrst" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ Semi GoD ]===--- "bcdefghijmnopqrs" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ Moderator ]===--- "bcdefhijmnop" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ Administrator ]===--- "bcdefhijmno" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ Agent ]===--- "bcdefhijmnor" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ HelpeR ]===--- "bcdefijm" "a" |
;|==============================================================================================|
;|==============================================================================================|
;|---===[ Slot ]===--- "b" "a" |
;|==============================================================================================|
0
0
te-n_cing
[Mentally Stable]
Posted: 23-02-2018, 18:49:04
| Translate post to:
... (
Click for more languages
)
O sa vin eu cu edit cu sma.
 
Staff message
(
PsychoLove
):
Nu posta pentru +1!
0
1
.::z3r0::.
[Banned user]
Posted: 24-02-2018, 19:07:20
| Translate post to:
... (
Click for more languages
)
Up
0
0
.::z3r0::.
[Banned user]
Posted: 26-02-2018, 16:43:34
| Translate post to:
... (
Click for more languages
)
Up , cineva?
0
0
.::z3r0::.
[Banned user]
Posted: 28-02-2018, 07:30:51
| Translate post to:
... (
Click for more languages
)
Up
0
0
TwisTer
[GOOGLE SEARCHER]
Posted: 28-02-2018, 13:12:48
| Translate post to:
... (
Click for more languages
)
O sa caut pe stick sigur am ceva la indemana cu asa ceva, imi cer scuze am fost plecat.
Revin cu pluginul cand il gasesc.
1
0
.::z3r0::.
[Banned user]
Posted: 07-03-2018, 15:26:52
| Translate post to:
... (
Click for more languages
)
@TwisTer
Ai gasit cv?
Chiar am nev de un plugin who!
0
0
TwisTer
[GOOGLE SEARCHER]
Posted: 07-03-2018, 20:37:46
| Translate post to:
... (
Click for more languages
)
Deja iti facusem asa ceva acum ceva timp :
Stii sa editezi numarul de grupuri si flagurile?
Spoiler:
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "bla"
#define VERSION "bla"
#define AUTHOR "bla"
#define GRUPURI 11
new const TITLU[] = " \wNume Admin \r| \wGrad" ;
new const IESIRE[] = "\y Iesire^n";
new const NOADMINS[] = "\y Nu sunt admini conectati.";
#pragma semicolon 1
new g_NumeGrade[ GRUPURI ][ ] = {
"\y| \rFounders+FTP+VIP \y|",
"\y| \rFounders \y|",
"\y| \rOwner \y|",
"\y| \rCo-Owner \y|",
"\y| \rOwner+VIP \y|",
"\y| \rAdministrator+VIP \y|",
"\y| \rAdministrator \y|",
"\y| \rModerator+VIP \y|",
"\y| \rModerator \y|",
"\y| \rHelper \y|",
"\y| \rSlot \y|"
};
new g_Flaguri[ GRUPURI ][ ] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopq",
"abcdefghijklmpqtu",
"abcdefghijklmn",
"abcdefghijklmnopqrs ",
"defghijklmnopqrs",
"ghijklmnopqstu",
"bcdefghijqr",
"rbcdefghijq",
"bceij",
"b"
}
;
new g_ValueFlaguri[ GRUPURI ];
public plugin_init( ) {
register_plugin( PLUGIN, VERSION, AUTHOR );
for( new i = 0 ; i < GRUPURI ; i++ )
g_ValueFlaguri[ i ] = read_flags( g_Flaguri[ i ] );
register_clcmd("say /who", "cmdWho");
register_clcmd("say_team /who", "cmdWho");
register_clcmd("say /admin", "cmdWho");
register_clcmd("say_team /admin", "cmdWho");
register_clcmd("say /admins", "cmdWho");
register_clcmd("say_team /admins", "cmdWho");
register_clcmd("say /admini", "cmdWho");
register_clcmd("say_team /admini", "cmdWho");
}
public cmdWho( id, page ) {
new MenuName[ 64 ], MenuExitKey[ 32 ];
formatex( MenuName, sizeof ( MenuName ) -1, "%s", TITLU );
formatex( MenuExitKey, sizeof ( MenuExitKey ) -1, "%s", IESIRE );
new menu = menu_create(MenuName, "InchidereMeniu");
if( AdminiON( ) )
{
for( new i = 0; i < GRUPURI; i++ )
{
AdaugareA( id, menu, i );
}
}
else
{
menu_additem( menu, NOADMINS , "1", 0 );
}
menu_setprop(menu, MPROP_EXITNAME, MenuExitKey );
menu_display(id, menu, page);
}
public InchidereMeniu(id, menu, item) {
if(item == MENU_EXIT)
{
menu_destroy( menu );
return 1;
}
new data[6], iName[64];
new iaccess, callback;
menu_item_getinfo(menu, item, iaccess, data,5, iName, 63, callback);
new key = str_to_num(data);
switch(key)
{
case 1,2,3,4,5,6,7:
{
menu_destroy( menu );
return 1;
}
}
return 0;
}
public AdaugareA( const id, const menu, const group ) {
new AdminMenuMessage[ 32 ][ 64 ],AdminMenuKey[ 32 ][ 32 ], MenuKey = 1;
static Players[ 32 ], Num, Player;
get_players( Players, Num, "ch" );
for( new x = 0 ; x < Num ; x++ )
{
Player = Players[ x ];
if( get_user_flags( Player ) == g_ValueFlaguri[ group ] )
{
formatex( AdminMenuMessage[ MenuKey ], sizeof ( AdminMenuMessage[ ] ) -1, " \w%s \y \w%s ",
gName( Player ), g_NumeGrade[ group ], Player == id ? "\r * " : "" );
formatex( AdminMenuKey[ MenuKey ], sizeof ( AdminMenuKey[ ] ) -1, "%d", MenuKey );
MenuKey++;
}
}
for( new z = 1 ; z < MenuKey ; z++ )
{
menu_additem( menu, AdminMenuMessage[ z ], AdminMenuKey[ z ], 0 );
}
}
stock bool:AdminiON( ) {
new bool:AGasiti = false;
static Players[ 32 ], Num, Player;
get_players( Players, Num, "ch" );
for( new x = 0 ; x < Num ; x++ )
{
Player = Players[ x ];
for( new i = 0 ; i < GRUPURI ; i++ )
{
if( AGasiti ) break;
if( get_user_flags( Player ) == g_ValueFlaguri[ i ] )
{
AGasiti = true;
}
}
}
return AGasiti ? true : false;
}
stock gName( id ) {
new name[ 32 ];
get_user_name( id, name, sizeof ( name ) -1 );
return name;
}
0
0
.::z3r0::.
[Banned user]
Posted: 07-03-2018, 20:41:47
| Translate post to:
... (
Click for more languages
)
TwisTer wrote:
Deja iti facusem asa ceva acum ceva timp :
Stii sa editezi numarul de grupuri si flagurile?
Spoiler:
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "bla"
#define VERSION "bla"
#define AUTHOR "bla"
#define GRUPURI 11
new const TITLU[] = " \wNume Admin \r| \wGrad" ;
new const IESIRE[] = "\y Iesire^n";
new const NOADMINS[] = "\y Nu sunt admini conectati.";
#pragma semicolon 1
new g_NumeGrade[ GRUPURI ][ ] = {
"\y| \rFounders+FTP+VIP \y|",
"\y| \rFounders \y|",
"\y| \rOwner \y|",
"\y| \rCo-Owner \y|",
"\y| \rOwner+VIP \y|",
"\y| \rAdministrator+VIP \y|",
"\y| \rAdministrator \y|",
"\y| \rModerator+VIP \y|",
"\y| \rModerator \y|",
"\y| \rHelper \y|",
"\y| \rSlot \y|"
};
new g_Flaguri[ GRUPURI ][ ] = {
"abcdefghijklmnopqrstu",
"abcdefghijklmnopq",
"abcdefghijklmpqtu",
"abcdefghijklmn",
"abcdefghijklmnopqrs ",
"defghijklmnopqrs",
"ghijklmnopqstu",
"bcdefghijqr",
"rbcdefghijq",
"bceij",
"b"
}
;
new g_ValueFlaguri[ GRUPURI ];
public plugin_init( ) {
register_plugin( PLUGIN, VERSION, AUTHOR );
for( new i = 0 ; i < GRUPURI ; i++ )
g_ValueFlaguri[ i ] = read_flags( g_Flaguri[ i ] );
register_clcmd("say /who", "cmdWho");
register_clcmd("say_team /who", "cmdWho");
register_clcmd("say /admin", "cmdWho");
register_clcmd("say_team /admin", "cmdWho");
register_clcmd("say /admins", "cmdWho");
register_clcmd("say_team /admins", "cmdWho");
register_clcmd("say /admini", "cmdWho");
register_clcmd("say_team /admini", "cmdWho");
}
public cmdWho( id, page ) {
new MenuName[ 64 ], MenuExitKey[ 32 ];
formatex( MenuName, sizeof ( MenuName ) -1, "%s", TITLU );
formatex( MenuExitKey, sizeof ( MenuExitKey ) -1, "%s", IESIRE );
new menu = menu_create(MenuName, "InchidereMeniu");
if( AdminiON( ) )
{
for( new i = 0; i < GRUPURI; i++ )
{
AdaugareA( id, menu, i );
}
}
else
{
menu_additem( menu, NOADMINS , "1", 0 );
}
menu_setprop(menu, MPROP_EXITNAME, MenuExitKey );
menu_display(id, menu, page);
}
public InchidereMeniu(id, menu, item) {
if(item == MENU_EXIT)
{
menu_destroy( menu );
return 1;
}
new data[6], iName[64];
new iaccess, callback;
menu_item_getinfo(menu, item, iaccess, data,5, iName, 63, callback);
new key = str_to_num(data);
switch(key)
{
case 1,2,3,4,5,6,7:
{
menu_destroy( menu );
return 1;
}
}
return 0;
}
public AdaugareA( const id, const menu, const group ) {
new AdminMenuMessage[ 32 ][ 64 ],AdminMenuKey[ 32 ][ 32 ], MenuKey = 1;
static Players[ 32 ], Num, Player;
get_players( Players, Num, "ch" );
for( new x = 0 ; x < Num ; x++ )
{
Player = Players[ x ];
if( get_user_flags( Player ) == g_ValueFlaguri[ group ] )
{
formatex( AdminMenuMessage[ MenuKey ], sizeof ( AdminMenuMessage[ ] ) -1, " \w%s \y \w%s ",
gName( Player ), g_NumeGrade[ group ], Player == id ? "\r * " : "" );
formatex( AdminMenuKey[ MenuKey ], sizeof ( AdminMenuKey[ ] ) -1, "%d", MenuKey );
MenuKey++;
}
}
for( new z = 1 ; z < MenuKey ; z++ )
{
menu_additem( menu, AdminMenuMessage[ z ], AdminMenuKey[ z ], 0 );
}
}
stock bool:AdminiON( ) {
new bool:AGasiti = false;
static Players[ 32 ], Num, Player;
get_players( Players, Num, "ch" );
for( new x = 0 ; x < Num ; x++ )
{
Player = Players[ x ];
for( new i = 0 ; i < GRUPURI ; i++ )
{
if( AGasiti ) break;
if( get_user_flags( Player ) == g_ValueFlaguri[ i ] )
{
AGasiti = true;
}
}
}
return AGasiti ? true : false;
}
stock gName( id ) {
new name[ 32 ];
get_user_name( id, name, sizeof ( name ) -1 );
return name;
}
@Multumesc mult!
T/C!
Le-am modificat si merg!
0
0
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
TwisTer
, 07 March 2018 18:42
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Counter-Strike: Help zone
The time now is 17-08-2025, 23:23:37
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details