Defectiune Ultimade_who.

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
LikeThis
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 14 May 2013, 15:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

16 May 2013, 21:22

Salut.
Deci mi-am pus un plugin Ultimade_who pe motd
Si cand ma conectez ca Owner nu ma arata la /who. De ce?
Uitati .sma-ul:

Code: Select all

#include <amxmodx>
#include <amxmisc>

#define PLUGIN			"ULTIMATE WHO"
#define VERSION			"1.1"
#define AUTHOR			"P.Of.Pw"

#define CharsMax(%1)		sizeof %1 - 1
#define time_shower		1.0

#define GROUPS_NAME		6
#define GROUPS_ACCESS		6

#define RRR			255
#define GGG			255
#define BBB			255
#define time_hud		12.0

#define motd_msg		"Staff RNG.Cs16.ro Online"

#define who_meniu_ad_group_msg	"\y-=[Admin's]=- \r-=[Online]=-^n"
#define who_meniu_admin_msg	"\y-=[Admin's]=- \w-=[Online]=-^n^n"

#define who_meniu_ad_group_msg_bottom	"^n\wPentru a iesi apasati \y0 \w sau \y5"
#define who_meniu_admin_msg_bottom	"^n\wPentru a iesi apasati \r0 \w sau \r5"

#define	who_console_top		"=========== Admini Online ==========="
#define	who_console_bottom 	"================================"

new GroupNames[GROUPS_NAME][] = {
	"Owneri",
	"Administratori",
	"Moderatori",
	"Admini",
	"Helperi",
	"Sloturi"
}

new GroupFlags[GROUPS_ACCESS][] = {
	"abcdefghijklmnopqrstu",
	"abcdefghijklmnopqrst",
	"bcdefijmnopstu",
	"bcdefijmnstu",
	"bceij",
	"b"
}

new GroupFlagsValue[GROUPS_NAME]

new who_type, who_typemeniu, who_typtable

public plugin_init() 
{
   
	register_plugin(PLUGIN, VERSION, AUTHOR)
   
	for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
		GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])
   
	register_clcmd("say", "cmdSay")
	register_clcmd("say_team", "cmdSay")
	
	who_type	= register_cvar("cmd_who","1")
	who_typemeniu	= register_cvar("who_typemeniu","1")
	who_typtable	= register_cvar("who_typetable","2")
}

public cmdSay(id)
{
	new say[192]
	read_args(say,192)
	if(( containi(say, "who") != -1 || containi(say, "admin") != -1 || containi(say, "admins") != -1  || contain(say, "/who") != -1 || contain(say, "/admin") != -1 || contain(say, "/admins") != -1))
		set_task(time_shower,"cmdULTMWho",id)
	return PLUGIN_CONTINUE
}

public cmdULTMWho(id)
{
	switch(get_pcvar_num(who_type))
	{
		case 1: who_meniu(id)
		
		case 2: who_motd(id)
		
		case 3: who_table(id)
		
		case 4: who_hud(id)
		
		case 5: who_console(id)
		
	}
	return 0
}

who_meniu(id)
{
	switch(get_pcvar_num(who_typemeniu))
	{
		case 1: who_meniu_admin_groups(id)
		
		case 2: who_meniu_admin(id)
	}
	return 0
}
who_meniu_admin_groups(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32]
	new szMenu[256], nLen, keys
	
	nLen = format(szMenu[nLen], 255, who_meniu_ad_group_msg)
	get_players(sPlayers, iNum, "ch")
   
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
	{   
		nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", GroupNames[p_of_pw])
     
		for(new a = 0; a < iNum ; a++)
		{   
			iPlayer = sPlayers[a]
         
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
			{
				get_user_name(iPlayer, sName, sizeof sName - 1)
				nLen += format(szMenu[nLen], 255-nLen,"\w%s^n", sName)
			}   
		}
	}
	nLen += format(szMenu[nLen], 255-nLen, who_meniu_ad_group_msg_bottom)
	keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
	show_menu(id,keys,szMenu,-1)
	return 0
}

who_meniu_admin(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32]
	new szMenu[256], nLen, keys
   
	nLen = format(szMenu[nLen], 255, who_meniu_admin_msg)
  
	get_players(sPlayers, iNum, "ch")
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
	{
		for(new a = 0; a < iNum ; a++)
		{   
			iPlayer = sPlayers[a]
         
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
			{
				get_user_name(iPlayer, sName, sizeof sName - 1)
				nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", sName)
			}   
		}
	}
	nLen += format(szMenu[nLen], 255-nLen, who_meniu_admin_msg_bottom)
	keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
	show_menu(id,keys,szMenu,-1)
	return 0
}

who_motd(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32], sBuffer[1024]
	new iLen
	
	iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
   
	get_players(sPlayers, iNum, "ch")
   
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
	{   
		iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"red^">%s^n</font></h5></center>", GroupNames[p_of_pw])
     
		for(new a = 0; a < iNum ; a++)
		{   
			iPlayer = sPlayers[a]
         
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
			{
				get_user_name(iPlayer, sName, sizeof sName - 1)
				iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName)
			}
		}		
	}
	show_motd(id, sBuffer, motd_msg)
	return 0

}

who_table(id)
{
	switch(get_pcvar_num(who_typtable))
	{
		case 1: table_style_one(id)
		
		case 2: table_style_two(id)
	}
	return 0
}
table_style_one(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32], sBuffer[1024]
	new iLen
	
	iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
	iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h3><b><font color=^"red^">NUME			-	ACCES</font></h3></b></center>")
	
	get_players(sPlayers, iNum, "ch")
   
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
	{
		for(new a = 0; a < iNum ; a++)
		{   
			iPlayer = sPlayers[a]
		
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
			{
				get_user_name(iPlayer, sName, sizeof sName - 1)
				iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h4><font color=^"white^">%s		%s^n</font></h4></center>", sName, GroupNames[p_of_pw])
			}
		}		
	}
	show_motd(id, sBuffer, motd_msg)
	return 0
}
table_style_two(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32], sBuffer[1024]
	new iLen
	
	iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
	
	iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<html><head><title>a</title></head>")
	iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<br><br><center><body><table border>")
	iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<tr><td><h3><b><font color=^"red^">NUME</td><td></h3></b> <h3><b><font color=^"red^">ACCES</td></h3></font></b></center>")
	
	get_players(sPlayers, iNum, "ch")
   
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
	{
		for(new a = 0; a < iNum ; a++)
		{   
			iPlayer = sPlayers[a]
		
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
			{
				get_user_name(iPlayer, sName, sizeof sName - 1)
				iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><tr><td><h4><b><font color=^"white^">%s<td></b></h4> <h4><b><font color=^"white^">%s </td></h4></font></b></center>", sName, GroupNames[p_of_pw])
			}
		}		
	}
	iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "</table></body></html>")
	show_motd(id, sBuffer, motd_msg)
	return 0
}

who_hud(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32], sBuffer[1024]
	new iLen
	
	get_players(sPlayers, iNum, "ch")
   
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
	{   
		iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "=== %s ===^n", GroupNames[p_of_pw])
     
		for(new a = 0; a < iNum ; a++)
		{   
			iPlayer = sPlayers[a]
         
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
			{
				get_user_name(iPlayer, sName, sizeof sName - 1)
				iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "%s^n", sName)
			}
		}		
	}
	set_hudmessage(RRR, GGG, BBB, 0.02, 0.24, 0, 6.0, time_hud)
	show_hudmessage(id, sBuffer)
	return 0
}

who_console(id)
{
	new sPlayers[32], iNum, iPlayer
	new sName[32]

	get_players(sPlayers, iNum)
	console_print(id, who_console_top)
	for(new p_of_pw = 0; p_of_pw < GROUPS_NAME; p_of_pw++) 
	{
		for(new a = 0; a < iNum ; a++)
		{
			
			iPlayer = sPlayers[a]
			get_user_name(iPlayer, sName, sizeof sName - 1)
			if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw]) 
				console_print(id, "= %d = %s : %s", p_of_pw+1, GroupNames[p_of_pw], sName)
			
			
		}
	}
	console_print(id, who_console_bottom)
	return 0
}
Last edited by LikeThis on 16 May 2013, 22:11, edited 1 time in total.
RoyalServer
User avatar
Nubo
Fost moderator
Fost moderator
Posts: 2734
Joined: 11 Jul 2012, 18:45
Detinator Steam: Da
CS Status: [əˈnɒn.ɪ.məs]
Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
Has thanked: 8 times
Been thanked: 27 times

16 May 2013, 21:51

Code: Select all

new GroupFlags[GROUPS_ACCESS][] = {
   "abcdefghijklmnopqrstu",
   "abcdefghijklmnopqrst",
   "bcdefijmnopstu",
   "bcdefijmnstu",
   "bceij",
   "b"
}
Corespunde cu users.ini ??
Cand nu merge acest forum sunt online aici:
  • * Skype: nubo_cs
    * Y!M ID: nubo_cs
LikeThis
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 14 May 2013, 15:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

16 May 2013, 21:53

Cum adica daca corespunde?
Vrei sa zici daca gradul pe care mi l-am dat corespunde cu cel de la .sma? Daca da. Corespunde..
User avatar
Darkq
Membru, skill 0
Membru, skill 0
Posts: 39
Joined: 13 Apr 2013, 12:57
Detinator Steam: Da
CS Status: Sunt sămânţar, prin concluzie porumbel.
Detinator server CS: DR.CS32.RO
SteamID: Nu il fac public.
Location: Bistrita
Has thanked: 1 time
Contact:

17 May 2013, 13:51

Defapt, el doreste sa spuna, ca daca tu ai accesele in user.ini gen :

abcdefghijklmnopqrstuT sau abcdefghijklmnopqrstuX

si in .sma de la utlimate_who :

abcdefghijklmnopqrstu, nu va functiona.
[Fondator] Pe comunitatea http://www.cs32.ro, un forum special cu utilizatori speciali.
[Detinator] Al serverului, deathrun DR.CS32.RO, XP-Mod , Vip-Mod , SkiilsMod & PointMod
[Recomand] Scripter AmxModX pe Hades Ownage, deoarece este foarte priceput.

[Versuri]Baiatu'i fresh din cap pana'n picioare, zici ca am fost neatent cand storceam PORTOCALE

[Multumesc]Daca te-am ajutat, apasa pe butonul Image
Image
TrrrQ
Fost moderator
Fost moderator
Posts: 2594
Joined: 04 Feb 2013, 00:31
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (3 luni)
Restrictie moderator!
Unban achitat (x2)
Fost moderator
Fond eXtream: 8
Has thanked: 135 times
Been thanked: 67 times
Contact:

17 May 2013, 16:28

Verificasa fie si in ultimate who si in users ini sa fie aceleasi accese:

daca in ultimate ai asa:
"abcd"

in users ini va trebui sa apara la fel
"abcd"


verfica sa ai si caracterele puse bine:exemplu:
"admin" "parola" "abcd" "a"

daca ai uitat un semn ca asta: "
si nu l-ai pus o sa-ti mearga adminu dar n-o sa apara.
Filme Online HD subtitrate fără reclame automate: https://filmeonline-hd.com
Prezentarea site-ului: https://www.youtube.com/watch?v=k4K3tgEkYjw
User avatar
Hades Ownage
Membru eXtream
Membru eXtream
Posts: 3182
Joined: 22 Oct 2008, 10:12
Detinator Steam: Da
Detinator server CS: jb.clutch.ro
SteamID: hades-source
Reputatie: Fost Super Moderator
Fost Scripter eXtreamCS
Nume anterior: hadesownage
Location: Iasi
Has thanked: 324 times
Been thanked: 406 times

17 May 2013, 16:49

TrrrQ wrote:Verificasa fie si in ultimate who si in users ini sa fie aceleasi accese:

daca in ultimate ai asa:
"abcd"

in users ini va trebui sa apara la fel
"abcd"


verfica sa ai si caracterele puse bine:exemplu:
"admin" "parola" "abcd" "a"

daca ai uitat un semn ca asta: "
si nu l-ai pus o sa-ti mearga adminu dar n-o sa apara.
Taci ma ca esti prost bubui . Daca nu corespundeau, meniul/motd-ul aparea gol .

Try it:
| Afiseaza codul
[code=php]#include <amxmodx>
#include <amxmisc>

#define PLUGIN         "ULTIMATE WHO"
#define VERSION         "1.1"
#define AUTHOR         "P.Of.Pw"

#define CharsMax(%1)      sizeof %1 - 1
#define time_shower      1.0

#define GROUPS_NAME      6
#define GROUPS_ACCESS      6

#define RRR         255
#define GGG         255
#define BBB         255
#define time_hud      12.0

#define motd_msg      "Staff RNG.Cs16.ro Online"

#define who_meniu_ad_group_msg   "\y-=[Admin's]=- \r-=[Online]=-^n"
#define who_meniu_admin_msg   "\y-=[Admin's]=- \w-=[Online]=-^n^n"

#define who_meniu_ad_group_msg_bottom   "^n\wPentru a iesi apasati \y0 \w sau \y5"
#define who_meniu_admin_msg_bottom   "^n\wPentru a iesi apasati \r0 \w sau \r5"

#define   who_console_top      "=========== Admini Online ==========="
#define   who_console_bottom    "================================"

new GroupNames[GROUPS_NAME][] = {
   "Owneri",
   "Administratori",
   "Moderatori",
   "Admini",
   "Helperi",
   "Sloturi"
}

new GroupFlags[GROUPS_ACCESS][] = {
   "abcdefghijklmnopqrstu",
   "abcdefghijklmnopqrst",
   "bcdefijmnopstu",
   "bcdefijmnstu",
   "bceij",
   "b"
}

new GroupFlagsValue[GROUPS_NAME]

new who_type, who_typemeniu, who_typtable

public plugin_init()
{
   
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   for(new p_of_pw = 0 ; p_of_pw < GROUPS_NAME ; p_of_pw++)
      GroupFlagsValue[p_of_pw] = read_flags(GroupFlags[p_of_pw])
   
   register_clcmd ( "say /who", "cmdULTMWho", -1 );
   register_clcmd ( "say who", "cmdULTMWho", -1 );
   register_clcmd ( "say /admins", "cmdULTMWho", -1 );
   register_clcmd ( "say /admin", "cmdULTMWho", -1 );
   
   who_type   = register_cvar("cmd_who","1")
   who_typemeniu   = register_cvar("who_typemeniu","1")
   who_typtable   = register_cvar("who_typetable","2")
}

public cmdSay(id)
{
   new say[192]
   read_args(say,192)
   if(( containi(say, "who") != -1 || containi(say, "admin") != -1 || containi(say, "admins") != -1  || contain(say, "/who") != -1 || contain(say, "/admin") != -1 || contain(say, "/admins") != -1))
      set_task(time_shower,"cmdULTMWho",id)
   return PLUGIN_CONTINUE
}

public cmdULTMWho(id)
{
   switch(get_pcvar_num(who_type))
   {
      case 1: who_meniu(id)
      
      case 2: who_motd(id)
      
      case 3: who_table(id)
      
      case 4: who_hud(id)
      
      case 5: who_console(id)
      
   }
   return 0
}

who_meniu(id)
{
   switch(get_pcvar_num(who_typemeniu))
   {
      case 1: who_meniu_admin_groups(id)
      
      case 2: who_meniu_admin(id)
   }
   return 0
}
who_meniu_admin_groups(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32]
   new szMenu[256], nLen, keys
   
   nLen = format(szMenu[nLen], 255, who_meniu_ad_group_msg)
   get_players(sPlayers, iNum, "ch")
   
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
   {   
      nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", GroupNames[p_of_pw])
     
      for(new a = 0; a < iNum ; a++)
      {   
         iPlayer = sPlayers[a]
         
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
         {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            nLen += format(szMenu[nLen], 255-nLen,"\w%s^n", sName)
         }   
      }
   }
   nLen += format(szMenu[nLen], 255-nLen, who_meniu_ad_group_msg_bottom)
   keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
   show_menu(id,keys,szMenu,-1)
   return 0
}

who_meniu_admin(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32]
   new szMenu[256], nLen, keys
   
   nLen = format(szMenu[nLen], 255, who_meniu_admin_msg)
 
   get_players(sPlayers, iNum, "ch")
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
   {
      for(new a = 0; a < iNum ; a++)
      {   
         iPlayer = sPlayers[a]
         
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
         {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            nLen += format(szMenu[nLen], 255-nLen,"\r%s^n", sName)
         }   
      }
   }
   nLen += format(szMenu[nLen], 255-nLen, who_meniu_admin_msg_bottom)
   keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<9)
   show_menu(id,keys,szMenu,-1)
   return 0
}

who_motd(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32], sBuffer[1024]
   new iLen
   
   iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
   
   get_players(sPlayers, iNum, "ch")
   
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
   {   
      iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h5><font color=^"red^">%s^n</font></h5></center>", GroupNames[p_of_pw])
     
      for(new a = 0; a < iNum ; a++)
      {   
         iPlayer = sPlayers[a]
         
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
         {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center>%s^n</center>", sName)
         }
      }      
   }
   show_motd(id, sBuffer, motd_msg)
   return 0

}

who_table(id)
{
   switch(get_pcvar_num(who_typtable))
   {
      case 1: table_style_one(id)
      
      case 2: table_style_two(id)
   }
   return 0
}
table_style_one(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32], sBuffer[1024]
   new iLen
   
   iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h3><b><font color=^"red^">NUME         -   ACCES</font></h3></b></center>")
   
   get_players(sPlayers, iNum, "ch")
   
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
   {
      for(new a = 0; a < iNum ; a++)
      {   
         iPlayer = sPlayers[a]
      
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
         {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><h4><font color=^"white^">%s      %s^n</font></h4></center>", sName, GroupNames[p_of_pw])
         }
      }      
   }
   show_motd(id, sBuffer, motd_msg)
   return 0
}
table_style_two(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32], sBuffer[1024]
   new iLen
   
   iLen = formatex(sBuffer, sizeof sBuffer - 1, "<body bgcolor=#000000><font color=#7b68ee><pre>")
   
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<html><head><title>a</title></head>")
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<br><br><center><body><table border>")
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<tr><td><h3><b><font color=^"red^">NUME</td><td></h3></b> <h3><b><font color=^"red^">ACCES</td></h3></font></b></center>")
   
   get_players(sPlayers, iNum, "ch")
   
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
   {
      for(new a = 0; a < iNum ; a++)
      {   
         iPlayer = sPlayers[a]
      
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
         {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "<center><tr><td><h4><b><font color=^"white^">%s<td></b></h4> <h4><b><font color=^"white^">%s </td></h4></font></b></center>", sName, GroupNames[p_of_pw])
         }
      }      
   }
   iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "</table></body></html>")
   show_motd(id, sBuffer, motd_msg)
   return 0
}

who_hud(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32], sBuffer[1024]
   new iLen
   
   get_players(sPlayers, iNum, "ch")
   
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME ; p_of_pw++)
   {   
      iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "=== %s ===^n", GroupNames[p_of_pw])
     
      for(new a = 0; a < iNum ; a++)
      {   
         iPlayer = sPlayers[a]
         
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
         {
            get_user_name(iPlayer, sName, sizeof sName - 1)
            iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "%s^n", sName)
         }
      }      
   }
   set_hudmessage(RRR, GGG, BBB, 0.02, 0.24, 0, 6.0, time_hud)
   show_hudmessage(id, sBuffer)
   return 0
}

who_console(id)
{
   new sPlayers[32], iNum, iPlayer
   new sName[32]

   get_players(sPlayers, iNum)
   console_print(id, who_console_top)
   for(new p_of_pw = 0; p_of_pw < GROUPS_NAME; p_of_pw++)
   {
      for(new a = 0; a < iNum ; a++)
      {
         
         iPlayer = sPlayers[a]
         get_user_name(iPlayer, sName, sizeof sName - 1)
         if(get_user_flags(iPlayer) == GroupFlagsValue[p_of_pw])
            console_print(id, "= %d = %s : %s", p_of_pw+1, GroupNames[p_of_pw], sName)
         
         
      }
   }
   console_print(id, who_console_bottom)
   return 0
}[/code]
LikeThis
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 14 May 2013, 15:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

17 May 2013, 17:47

Problema e ca nici comenzile nu mergeam cand imi bagam accese..

O sa vad daca merge daca nu las reply.
LikeThis
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 14 May 2013, 15:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

17 May 2013, 18:03

Tot nu merge.
Dar ciudat e ca nici cand adaug un user oare care ca Admin tot nu merge.
TrrrQ
Fost moderator
Fost moderator
Posts: 2594
Joined: 04 Feb 2013, 00:31
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (3 luni)
Restrictie moderator!
Unban achitat (x2)
Fost moderator
Fond eXtream: 8
Has thanked: 135 times
Been thanked: 67 times
Contact:

17 May 2013, 18:49

Nu aveam eu de unde sa stiu ca nu-i mergeau nici comenzile.
Si vezi cu limbaju ala de la canalizare ca eu nu te-am jignit.

Edit: serveru tau e pe windows sau linux?
Filme Online HD subtitrate fără reclame automate: https://filmeonline-hd.com
Prezentarea site-ului: https://www.youtube.com/watch?v=k4K3tgEkYjw
LikeThis
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 14 May 2013, 15:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

17 May 2013, 19:01

e pe Windows. Dar cred ca incep din nou. O iau de la 0 :))
TrrrQ
Fost moderator
Fost moderator
Posts: 2594
Joined: 04 Feb 2013, 00:31
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (3 luni)
Restrictie moderator!
Unban achitat (x2)
Fost moderator
Fond eXtream: 8
Has thanked: 135 times
Been thanked: 67 times
Contact:

17 May 2013, 19:07

nu incepe nimic.
pe windows, daca vrei sa-ti mearga adminu
dupa ce intri pe server
te duci la consola serverului si scri:

Code: Select all

amx_reloadadmins
si apoi intri pe server , o sa-ti mearga ;)

edit: daca ai serveru hostat la o firma care merge numai pe windows iti recomand sa schimbi firma sa iti faci serveru pe linux.
Daca vrei am eu niste prieteni si iti pot face rost de o oferta.Da-mi un pm sau contacteaza-ma la id: Trrr_Q [hostezi la ei si te ajuta cu problemele]
Filme Online HD subtitrate fără reclame automate: https://filmeonline-hd.com
Prezentarea site-ului: https://www.youtube.com/watch?v=k4K3tgEkYjw
LikeThis
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 14 May 2013, 15:15
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 4 times
Contact:

17 May 2013, 19:49

Multumesc oricum. O sa vad ce pot face sa vad daca merge.
Inca nu am hostat serverul.
Multumesc pentru ajutor o sa te contactez peste cateva zile.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests