User
Pass
2FA
 
 

Plugin who v2 -problema afisare incompleta in consola

 
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) -> Resources
Author Message4345
clep

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 09-10-2007, 17:22:01 | Translate post to: ... (Click for more languages)

Sall
admin_who.sma
Code:
#include <core>
#include <console>
#include <plugin>
#include <adminlib>

#define OWNER 262143
#define GOD 131071
#define MOD 131043
#define ADM 65507
#define HELPER 52963
#define SLOT 49217
#define NUME 49152

new g_Version[] = "0.8";
new g_default_access;

public plugin_init() {
plugin_registerinfo("Plugin who","Displaying Adminmod accesslevels",g_Version);
plugin_registercmd("admin_who","AdminWho",ACCESS_ALL,"admin_who: Displays all admins and their accesslevel.");
g_default_access=getvar("default_access");
return PLUGIN_CONTINUE;
}

public AdminWho(HLCommand,HLData,HLUserName,UserIndex) {
new MaxPlayers = maxplayercount();
new Data[MAX_PLAYERS][2];
new Name[MAX_NAME_LENGTH];
new Admins = 0;
new i,j;
new Owner[MAX_TEXT_LENGTH]="";
new God[MAX_TEXT_LENGTH]="";
new Mod[MAX_TEXT_LENGTH]="";
new Adm[MAX_TEXT_LENGTH]="";
new Helper[MAX_TEXT_LENGTH]="";
new Slot[MAX_TEXT_LENGTH]="";
new Nume[MAX_TEXT_LENGTH]="";


for(i=1;i<MaxPlayers>0;j/=2) {
if(access(j,Name) == 1) {
Data[i][1] += j;
}
}
if(Data[i][1] != g_default_access) {
Data[i][0] = i;
Admins++;
}
}
}

if(Admins > 0) {
Sort(Data);
selfmessage(".::::::::::::::: Romania CSALLIANCE ::::::::::::::::.");
for(i=1;i<MaxPlayers> 0) {
if(playerinfo(Data[i][0],Name,MAX_NAME_LENGTH)) {
switch(Data[i][1]){
case OWNER:{
snprintf(Owner,MAX_TEXT_LENGTH,"[01].Owner :   %s ", Name); selfmessage(Owner);
}
case GOD:{
snprintf(God,MAX_TEXT_LENGTH,"[02].God :   %s ", Name); selfmessage(God);
}
case MOD:{
snprintf(Mod,MAX_TEXT_LENGTH,"[03].Semigod :   %s ",Name); selfmessage(Mod);
}
case ADM:{
snprintf(Adm,MAX_TEXT_LENGTH,"[04].Moderator :   %s ",Name); selfmessage(Adm);
}
case HELPER:{
snprintf(Helper,MAX_TEXT_LENGTH,"[05].Administrator :   %s ",Name); selfmessage(Helper);
}
case SLOT:{
snprintf(Slot,MAX_TEXT_LENGTH,"[06].Helper:   %s ",Name); selfmessage(Slot);
}
case NUME:{
snprintf(Nume,MAX_TEXT_LENGTH,"[07].Slot :   %s ",Name); selfmessage(Nume);
selfmessage(".::::::::::: Visit US SITE.RO ::::::::::::.");
}
}
}
}
}
} else {
selfmessage(".::::::::::::::: Romania SERVER ::::::::::::::::.");
selfmessage("            There are no ADMINS or SLOTS in SERVER       ");
selfmessage(".::::::::::: Visit US SITE.RO ::::::::::::.");
}
return PLUGIN_HANDLED;
}

Sort(Data[MAX_PLAYERS][2]) {
new MaxPlayers = maxplayercount();
new i,j,k;
for(i=2;i<MaxPlayers;i++) {
for(j=1;j<i> Data[j][1]) {
Data[0] = Data[i];
for(k=i-1;k>=j;k--) {
Data[k+1] = Data[k];
}
Data[j] = Data[0];
}
}
}
}



ex: In server cand scriu in consola admin_who(fiind un admin-owner pe server apare numele) , arata ......::::::::::::::: Romania SERVER ::::::::::::::::...... deasupra de owner iar jos de owner ar tre sa scrie ......::::::::::: Visit US SITE.RO ::::::::::::...... ,insa textul de jos nu este deloc afisat.

0 0
  
Back to top
View user's profile Send private message
*0ranGe ! extrem

[I ❤ MY POLO!]



Status: Offline
(since 11-12-2017 12:06)
Joined: 01 Jul 2007
Posts: 11419, Topics: 191
Location: Romania

Reputation: 683.4
Votes: 117

   
Post Posted: 09-10-2007, 18:24:01 | Translate post to: ... (Click for more languages)

pai poate din cauza k sunt folosite prea multe caractere ..


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

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 09-10-2007, 20:01:12 | Translate post to: ... (Click for more languages)

*0ranGe ! extrem wrote:
pai poate din cauza k sunt folosite prea multe caractere ..


Cu siguranta nu e de la asta....te poti convinge daca intri pe csnation(scz d reclama)
rezolvarea e usoara ,presupun,pentru cunascatori de limbaj:)


nu stie nimeni ? -

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

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 11-10-2007, 17:04:26 | Translate post to: ... (Click for more languages)

double post -
0 0
  
Back to top
View user's profile Send private message
Poseidon
[Banned user]


Banned


Status: Offline
(since 05-02-2008 16:11)
Joined: 30 May 2007
Posts: 41, Topics: 2
Location: Romania

Reputation: 95.4
Votes: 4

Post Posted: 27-11-2007, 23:47:32 | Translate post to: ... (Click for more languages)

Te rog nu mai face double-post,da edit.

Uite aici,este pus corect,si merge,am impresia ca ai sters/modificat niste linii si ai sters si niste variabile in acelasi timp. Here you are:

Code:
#include <core>

#include <console>

#include <plugin>

#include <adminlib>



#define OWNER 131071

#define GOD 130499

#define MOD 118211

#define ADM 52673

#define HELPER 52417

#define SLOT 49512

#define NUME 16384



new g_Version[] = "0.8";

new g_default_access;



public plugin_init() {

plugin_registerinfo("Plugin who","Displaying Adminmod accesslevels",g_Version);

plugin_registercmd("admin_who","AdminWho",ACCESS_ALL,"admin_who: Displays all admins and their accesslevel.");

g_default_access=getvar("default_access");

return PLUGIN_CONTINUE;

}



public AdminWho(HLCommand,HLData,HLUserName,UserIndex) {

new MaxPlayers = maxplayercount();

new Data[MAX_PLAYERS][2];

new Name[MAX_NAME_LENGTH];

new Admins = 0;

new i,j;

new Owner[MAX_TEXT_LENGTH]="";

new God[MAX_TEXT_LENGTH]="";

new Mod[MAX_TEXT_LENGTH]="";

new Adm[MAX_TEXT_LENGTH]="";

new Helper[MAX_TEXT_LENGTH]="";

new Slot[MAX_TEXT_LENGTH]="";

new Nume[MAX_TEXT_LENGTH]="";





for(i=1;i<=MaxPlayers;i++) {

if(playerinfo(i,Name,MAX_NAME_LENGTH) == 1) {

Data[i][1] = 0;

for(j=131072;j>0;j/=2) {

if(access(j,Name) == 1) {

Data[i][1] += j;

}

}

if(Data[i][1] != g_default_access) {

Data[i][0] = i;

Admins++;

}

}

}



if(Admins > 0) {

Sort(Data);

selfmessage("----------------------------------------------------------------------------------");

for(i=1;i<=MaxPlayers;i++) {

if(Data[i][0] > 0) {

if(playerinfo(Data[i][0],Name,MAX_NAME_LENGTH)) {

switch(Data[i][1]){

case OWNER:{

snprintf(Owner,MAX_TEXT_LENGTH,"[01]____Owner : %s ", Name); selfmessage(Owner);

}

case GOD:{

snprintf(God,MAX_TEXT_LENGTH,"[02]_____GoDs : %s ", Name); selfmessage(God);

}

case MOD:{

snprintf(Mod,MAX_TEXT_LENGTH,"[03]_____Moderators : %s ",Name); selfmessage(Mod);

}

case ADM:{

snprintf(Adm,MAX_TEXT_LENGTH,"[04]_____Administrator : %s ",Name); selfmessage(Adm);

}

case HELPER:{

snprintf(Helper,MAX_TEXT_LENGTH,"[05]_____Helper : %s ",Name); selfmessage(Helper);

}

case SLOT:{

snprintf(Slot,MAX_TEXT_LENGTH,"[06]______ : %s Slot_rezervat ",Name); selfmessage(Slot);

}

case NUME:{

snprintf(Nume,MAX_TEXT_LENGTH,"[07]_____ : %s Nume_rezervat",Name); selfmessage(Nume);

}

}

}

}

}

} else {

selfmessage("----------------------------------------------------------");

selfmessage("Nu sunt ADMINI sau SLOTURI pe server");

selfmessage("----------------------------------------------------------");

}

return PLUGIN_HANDLED;

}



Sort(Data[MAX_PLAYERS][2]) {

selfmessage("----------------------------------------------------------------------------------");

new MaxPlayers = maxplayercount();

new i,j,k;

for(i=2;i<MaxPlayers;i++) {

for(j=1;j<i;j++) {

if(Data[i][1] > Data[j][1]) {

Data[0] = Data[i];

for(k=i-1;k>=j;k--) {

Data[k+1] = Data[k];

}

Data[j] = Data[0];

}

}

}

}

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

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 11-01-2008, 12:51:02 | Translate post to: ... (Click for more languages)

m am intors dupa un an -....dar tot am nevoie de pluginul acesta....am dat copy paste in sma si nu merge compilat...daca reusesti tu chiar te rog sa il postezi compilat !
sal
La multi ani

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

[SiNNERS]



Status: Offline
(since 26-05-2022 08:04)
Joined: 21 Jan 2007
Posts: 2218, Topics: 67
Location: Romania

Reputation: 568.7
Votes: 40

       
Post Posted: 11-01-2008, 18:23:45 | Translate post to: ... (Click for more languages)

poti sa il compilezi pe situl lor...amx pt admin mod nu am gasit

Professional Gamer


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

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 18-01-2008, 08:25:57 | Translate post to: ... (Click for more languages)

pluginul este pt adminmod nu se poate compila pe amxmodx.org ....am incercat sa compilez varianta de mai sus si tot nu merge...... -

Chiar nu stie nimeni o rezolvare pentru acest plugin ?

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

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 17-05-2008, 15:45:43 | Translate post to: ... (Click for more languages)

Chiar nu stie nimeni o rezolvare pentru acest plugin ?
0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 18-05-2008, 12:53:42 | Translate post to: ... (Click for more languages)

Pai nu trebuie pe amxmodx, il compilezi folosind ADMINMOD de pe http://www.adminmod.org . Nu merge? Ce erori da?

FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
clep

[Mentally Stable]



Status: Offline
(since 23-08-2008 15:11)
Joined: 27 Aug 2007
Posts: 14, Topics: 3
Location: Romania

Reputation: 97.3
Votes: 4

Post Posted: 18-05-2008, 16:59:31 | Translate post to: ... (Click for more languages)

stiu ca pe adminmod se compileaza ,tocmai asta e,nu da nici o eroare si problema e ca nu afiseaza tot ce trebuie in consola...citeste topicul sus(afiseaza doar linia de deasupra care o scrii u in sma,apoi ce admini sunt pe server si ultima linie care tot o setezi din sma nu apare)...rezolvarea am vazut ca o au putini:(
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




 
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) -> Resources  


The time now is 29-04-2024, 19:44:40
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x