User
Pass
2FA
 
 

plugin amx_who
Go to page Previous  1, 2    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message7133
ZommBlesSs

[Mentally Stable]



Status: Offline
(since 06-04-2017 11:46)
Joined: 29 Mar 2017
Posts: 28, Topics: 5
Location: Romania

Reputation: 2.9

Post Posted: 05-04-2017, 20:13:37 | Translate post to: ... (Click for more languages)

Ambele care mi le-ati trimis am incercat , la ambele imi da asa
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 05-04-2017, 20:17:03 | Translate post to: ... (Click for more languages)

Ai pus macar amx_who.amxx prima data in lista din plugins.ini(primu plugin)?

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
ZommBlesSs

[Mentally Stable]



Status: Offline
(since 06-04-2017 11:46)
Joined: 29 Mar 2017
Posts: 28, Topics: 5
Location: Romania

Reputation: 2.9

Post Posted: 05-04-2017, 20:22:59 | Translate post to: ... (Click for more languages)

Nu , stai acuma incerc

Update @ 05-04-2017, 21:22:59

degeaba , nu merge ...

0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 05-04-2017, 20:29:16 | Translate post to: ... (Click for more languages)

Vezi
Code:
#include < amxmodx >
#include < amxmisc >

#define PLUGIN "EDITED WHO FOR FREAKZ"
#define VERSION "."
#define AUTHOR "anakk"

// - - - - -
new const gfi_RangsFile[ ] = "who.ini";
// - - - - -

new gfi_WorkFile[ 128 ];
new gs_Rangs[ 10 ][ 32 ], gs_Flags[ 10 ][ 32 ];

new gi_MaxPlayers, gi_Rangs;

public plugin_init ( )
{
register_plugin ( PLUGIN, VERSION, AUTHOR );
register_concmd ( "admin_who", "ShowAdmins" );
register_concmd ( "/admin", "ShowAdmins" );
register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- who is it")

gi_MaxPlayers = get_maxplayers ( );
}

public ShowAdmins ( id )
{
console_print ( id, "~~~ Online Admin's ~~~" );

new s_Name[ 32 ];

for ( new i_Rang; i_Rang < gi_Rangs; i_Rang++ )
{
console_print ( id, "[%i] %s", i_Rang + 1, gs_Rangs[ i_Rang ] );

for ( new i_Admin = 1; i_Admin <= gi_MaxPlayers; i_Admin++ )
{
if ( ! is_user_connected ( i_Admin ) )
continue;
if ( get_user_flags ( i_Admin ) != read_flags ( gs_Flags[ i_Rang ] ) )
continue;

get_user_name ( i_Admin, s_Name, 31 );
console_print ( id, "~~ %s ~~", s_Name );
}
}

console_print ( id, "~~~ STAFF ~~~" );
return 1;
}

public plugin_cfg ( )
{
new fi_Dir[ 64 ];
get_configsdir ( fi_Dir, charsmax ( fi_Dir ) );
formatex ( gfi_WorkFile, charsmax ( gfi_WorkFile ), "%s/%s", fi_Dir, gfi_RangsFile );

if ( ! file_exists ( gfi_WorkFile ) )
write_file ( gfi_WorkFile, "" );

new s_Buffer[ 192 ], i, i_Line, i_Len;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
if ( strlen ( s_Buffer ) > 0 && s_Buffer[ 0 ] != ';' )
break;
}

gi_Rangs = str_to_num ( s_Buffer );

i = 0;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
if ( i == gi_Rangs )
break;
if ( ! strlen ( s_Buffer ) || s_Buffer[ 0 ] == ';' )
continue;

copy ( gs_Rangs[ i ], 31, s_Buffer );
i++;
}

i = 0;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
if ( i == gi_Rangs )
break;
if ( ! strlen ( s_Buffer ) || s_Buffer[ 0 ] == ';' )
continue;

copy ( gs_Flags[ i ], 31, s_Buffer );
i++;
}
}
(primu plugin )


Daca nu merge vezi asa :
Code:
#include < amxmodx >
#include < amxmisc >

#define PLUGIN "EDITED WHO FOR FREAKZ"
#define VERSION "."
#define AUTHOR "anakk"

// - - - - -
new const gfi_RangsFile[ ] = "who.ini";
// - - - - -

new gfi_WorkFile[ 128 ];
new gs_Rangs[ 10 ][ 32 ], gs_Flags[ 10 ][ 32 ];

new gi_MaxPlayers, gi_Rangs;

public plugin_init ( )
{
register_plugin ( PLUGIN, VERSION, AUTHOR );
register_concmd ( "admin_who", "ShowAdmins" );
register_concmd ( "/admin", "ShowAdmins" );
// register_concmd("amx_who", "cmdWho", ADMIN_ADMIN, "- displays who is on server")

gi_MaxPlayers = get_maxplayers ( );
}

public ShowAdmins ( id )
{
console_print ( id, "~~~ Online Admin's ~~~" );

new s_Name[ 32 ];

for ( new i_Rang; i_Rang < gi_Rangs; i_Rang++ )
{
console_print ( id, "[%i] %s", i_Rang + 1, gs_Rangs[ i_Rang ] );

for ( new i_Admin = 1; i_Admin <= gi_MaxPlayers; i_Admin++ )
{
if ( ! is_user_connected ( i_Admin ) )
continue;
if ( get_user_flags ( i_Admin ) != read_flags ( gs_Flags[ i_Rang ] ) )
continue;

get_user_name ( i_Admin, s_Name, 31 );
console_print ( id, "~~ %s ~~", s_Name );
}
}

console_print ( id, "~~~ STAFF ~~~" );
return 1;
}

public plugin_cfg ( )
{
new fi_Dir[ 64 ];
get_configsdir ( fi_Dir, charsmax ( fi_Dir ) );
formatex ( gfi_WorkFile, charsmax ( gfi_WorkFile ), "%s/%s", fi_Dir, gfi_RangsFile );

if ( ! file_exists ( gfi_WorkFile ) )
write_file ( gfi_WorkFile, "" );

new s_Buffer[ 192 ], i, i_Line, i_Len;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
if ( strlen ( s_Buffer ) > 0 && s_Buffer[ 0 ] != ';' )
break;
}

gi_Rangs = str_to_num ( s_Buffer );

i = 0;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
if ( i == gi_Rangs )
break;
if ( ! strlen ( s_Buffer ) || s_Buffer[ 0 ] == ';' )
continue;

copy ( gs_Rangs[ i ], 31, s_Buffer );
i++;
}

i = 0;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
if ( i == gi_Rangs )
break;
if ( ! strlen ( s_Buffer ) || s_Buffer[ 0 ] == ';' )
continue;

copy ( gs_Flags[ i ], 31, s_Buffer );
i++;
}
}


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
ZommBlesSs

[Mentally Stable]



Status: Offline
(since 06-04-2017 11:46)
Joined: 29 Mar 2017
Posts: 28, Topics: 5
Location: Romania

Reputation: 2.9

Post Posted: 05-04-2017, 20:31:00 | Translate post to: ... (Click for more languages)

eroare la compilare
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 05-04-2017, 20:32:45 | Translate post to: ... (Click for more languages)

Ambele functioneaza : primul
Al doilea

Vezi cu AMXX , macar sa mearga , asta e scopu si daca e iti zic eu la compilare.


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
ZommBlesSs

[Mentally Stable]



Status: Offline
(since 06-04-2017 11:46)
Joined: 29 Mar 2017
Posts: 28, Topics: 5
Location: Romania

Reputation: 2.9

Post Posted: 05-04-2017, 20:35:47 | Translate post to: ... (Click for more languages)

La mine pe server nu merge nici unul ....
0 0
  
Back to top
View user's profile Send private message
Sa[q]

[FCSB]



Status: Offline
(since 31-01-2018 18:34)
Joined: 24 Apr 2015
Posts: 823, Topics: 125
Location: Bucuresti

Reputation: 90.6
Votes: 10

 
Post Posted: 05-04-2017, 21:18:52 | Translate post to: ... (Click for more languages)

ZommBlesSs wrote:
La mine pe server nu merge nici unul ....

E imposibil, esti sigur ca pui pluginul .amxx in addons/plugins? Si numele pluginului in addons/configs/plugin.ini? Vezi ca trebuie scris numele pluginului .amxx
Dupa schimba mapa sau dai restart la server si intra pe sv si scrie in consola amx_who
Daca nu verifica in consola si vezi daca iti da vreo eroare.

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
ZommBlesSs

[Mentally Stable]



Status: Offline
(since 06-04-2017 11:46)
Joined: 29 Mar 2017
Posts: 28, Topics: 5
Location: Romania

Reputation: 2.9

Post Posted: 05-04-2017, 21:53:54 | Translate post to: ... (Click for more languages)

Rezolvat , MERSI @GoreSpintecatoru.
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 05-04-2017, 22:02:12 | Translate post to: ... (Click for more languages)

Rezolvarea pentru viitorele probleme:
1. Una bucata amx_who ( nu conteaza , random cum vreti )
2. Verificati sa nu se buseasca client_cmd-ul din who cu cel din admincmd(sau alte plugin-uri).


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by TwisTer, 07 April 2017 16:57



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  
Go to page Previous  1, 2    


The time now is 28-07-2025, 16:11:46
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password