User
Pass
2FA
 
 

Ce Trebuie sa modific in sma-ul asta?

 
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 Message1434
smecheru17
[Banned user]


Banned


Status: Offline
(since 22-04-2010 20:17)
Joined: 03 Nov 2009
Posts: 123, Topics: 31
Location: Bucuresti

Reputation: 126.2
Votes: 5

Post Posted: 20-11-2009, 00:03:25 | Translate post to: ... (Click for more languages)

Ce trebuie sa modific sa imi apara cu culoare albastra cand sunt adminii online?

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Admins Online"
#define VERSION "1.0"
#define AUTHOR "Smecheru"

new maxplayers;
new admincvar;

public plugin_init() {
register_plugin( PLUGIN, VERSION, AUTHOR );
set_task( 2.0, "adminsonline", 0, "", 0, "b" );

maxplayers = get_maxplayers()
admincvar = register_cvar("amx_showadmins","1");
}

public adminsonline() {

new id, count

for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_KICK)
count++

if(get_pcvar_num(admincvar) ==1)
{

if (count>0)
{

if (count==1) {
set_hudmessage(0,255, 0, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Este %d admin cu ochii pe tine!",count );
}
else {
set_hudmessage(0,255, 0, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Sunt %d admini cu ochii pe tine!",count );
}
}
else
{
set_hudmessage(255, 0, 0, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Nu este nici un ochi online!",count );
}
}

}




0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 20-11-2009, 10:07:08 | Translate post to: ... (Click for more languages)

Quote:
if (count==1) {
set_hudmessage(0,255, 0, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Este %d admin cu ochii pe tine!",count );
}
else {
set_hudmessage(0,255, 0, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Sunt %d admini cu ochii pe tine!",count );
}

Inlocuiesti cu
Quote:
if (count==1) {
set_hudmessage(0,0, 255, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Este %d admin cu ochii pe tine!",count );
}
else {
set_hudmessage(0,0, 255, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Sunt %d admini cu ochii pe tine!",count );
}


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
smecheru17
[Banned user]


Banned


Status: Offline
(since 22-04-2010 20:17)
Joined: 03 Nov 2009
Posts: 123, Topics: 31
Location: Bucuresti

Reputation: 126.2
Votes: 5

Post Posted: 20-11-2009, 15:22:37 | Translate post to: ... (Click for more languages)

Nu merge imi da 2 erori -- . uite in imagine.






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

[Born Wild]



Status: Offline
(since 17-05-2014 22:04)
Joined: 15 Jun 2009
Posts: 440, Topics: 30
Location: Romania

Reputation: 300.4
Votes: 10

Post Posted: 20-11-2009, 21:05:53 | Translate post to: ... (Click for more languages)

if (count==1) {
set_hudmessage(0,255, 100, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Este %d admin cu ochii pe tine!",count );
}
else {
set_hudmessage(0,255, 100, 0.15, 0.00, 0, 6.0, 3700.0 );
show_hudmessage(0, "Sunt %d admini cu ochii pe tine!",count );

adauga codul asta in locul la alea ale tale (sper sa fie pt albastru


Edited: Fara reclama in semnatura
0 0
  
Back to top
View user's profile Send private message
nr913
[Banned user]


Banned


Status: Offline
(since 24-10-2013 10:06)
Joined: 24 Apr 2009
Posts: 4224, Topics: 223
Location: România

Reputation: 60.3
Votes: 156

 
Post Posted: 20-11-2009, 22:40:59 | Translate post to: ... (Click for more languages)

Tyger, din ce surse vorbesti tu?

Tu i-ai dat un verde deschis

Eu i-am dat un albastru perfect

Asta este codul functional:
Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Admins Online"
#define VERSION "1.0"
#define AUTHOR "PUNE AUTORUL ORIGINAL!"

new maxplayers;
new admincvar;

public plugin_init()
{
   register_plugin(PLUGIN,VERSION,AUTHOR);
   set_task(2.0,"adminsonline",0,"",0,"b");
   maxplayers=get_maxplayers()
   admincvar=register_cvar("amx_showadmins","1");
}

public adminsonline()
{
   new id,count
   for(id=1;id<=maxplayers;id++)
      if(is_user_connected(id))
         if(get_user_flags(id)&ADMIN_KICK)
            count++
   if(get_pcvar_num(admincvar)==1)
   {
      if(count>0)
      {
         if(count==1)
         {
            set_hudmessage(0,0,255,0.15,0.00,0,6.0,3700.0);
            show_hudmessage(0,"Este %d admin cu ochii pe tine!",count);
         }
         else
         {
            set_hudmessage(0,0,255,0.15,0.00,0,6.0,3700.0);
            show_hudmessage(0,"Sunt %d admini cu ochii pe tine!",count);
         }
      }
      else
      {
         set_hudmessage(255,0,0,0.15,0.00,0,6.0,3700.0);
         show_hudmessage(0,"Nu este nici un ochi online!",count);
      }
   }
}


Attitude - A little thing that makes a BIG difference
0 0
  
Back to top
View user's profile Send private message
smecheru17
[Banned user]


Banned


Status: Offline
(since 22-04-2010 20:17)
Joined: 03 Nov 2009
Posts: 123, Topics: 31
Location: Bucuresti

Reputation: 126.2
Votes: 5

Post Posted: 21-11-2009, 00:11:48 | Translate post to: ... (Click for more languages)

Ms mult nr913 raman dator de cinste -



0 0
  
Back to top
View user's profile Send private message
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 02-08-2025, 16:48:32
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password