User
Pass
2FA
 
 

Cerere plugin

 
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) -> Counter-Strike: Help zone
Author Message1364
~MRS~

[~ Far Son och Bror ~]



Status: Offline
(since 17-02-2019 14:00)
Joined: 07 Apr 2011
Posts: 8084, Topics: 165
Location: Galati

Reputation: 1826.4
Votes: 132

   
Post Posted: 17-01-2016, 21:26:19 | Translate post to: ... (Click for more languages)

Doresc un sma legat de conectarea adminilor pe server: "Admin Ion s-a conectat pe server/Admin Ion a iesit de pe server". Ideea este ca vreau sa schimb numele din "admin" in altceva, dar problema este ca vreau sa fie pe grade, mai bine zis cand intra un helper sa scrie "helper Ion s-a conectat" si cand intra un admin N3 sa scrie "Admin N3 Ion s-a conectat", sper ca am explicat cat mai bine. De asta doresc sma-ul.

Du kommer ikke til ende, hvis du stopper ved hvert trin

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

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 17-01-2016, 22:12:18 | Translate post to: ... (Click for more languages)

Nu e cine stie ce de facut, da-mi un UP maine cand o sa am timp si o sa incerc sa ti-l fac, acum sunt putin ocupat. Activeaza-mi casuta maine pls.



Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

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

[~ Far Son och Bror ~]



Status: Offline
(since 17-02-2019 14:00)
Joined: 07 Apr 2011
Posts: 8084, Topics: 165
Location: Galati

Reputation: 1826.4
Votes: 132

   
Post Posted: 18-01-2016, 17:42:01 | Translate post to: ... (Click for more languages)

@Edutz

Du kommer ikke til ende, hvis du stopper ved hvert trin

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

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 18-01-2016, 18:07:55 | Translate post to: ... (Click for more languages)

Zi-mi daca merge:

Code:
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 7
new g_Rang[MAX_GROUPS][] = {
   "Owner",
   "N1",
   "N2",
   "N3",
   "N4",
   "Helper",
   "GM"
};

new g_RangFlag[MAX_GROUPS][] = {
   "abcdefghijklmnopqrstu",
   "abcefhijkmnoprstq",
   "abctefhijnop",
   "bctefhijknp",
   "bctefhij",
   "cefhij",
   "bi"
};

public plugin_init() register_plugin("AdminOnOff", "1.0", "EDUTz");
public client_putinserver(id)
{
   if(is_user_admin(id))
   {
      for(new i = 0; i < MAX_GROUPS; i++) {
         if(get_user_flags(id) == read_flags(g_RangFlag[i]))
            client_print(0, print_chat, "[%s] %s s-a conectat pe server.", g_Rang[i], get_name(id))
      }
   }
}

public client_disconnect(id)
{
   if(is_user_admin(id))
   {
      for(new i = 0; i < MAX_GROUPS; i++) {
         if(get_user_flags(id) == read_flags(g_RangFlag[i]))
            client_print(0, print_chat, "[%s] %s sa iesit de pe server.", g_Rang[i], get_name(id))
      }
   }
}

stock get_name (id) {
   new name[32];
   get_user_name(id, name, 31);
   return name;
}





Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

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

[~ Far Son och Bror ~]



Status: Offline
(since 17-02-2019 14:00)
Joined: 07 Apr 2011
Posts: 8084, Topics: 165
Location: Galati

Reputation: 1826.4
Votes: 132

   
Post Posted: 19-01-2016, 14:22:31 | Translate post to: ... (Click for more languages)

Da, e perfect. Am schimbat eu numele si accesele ca nu erau aceleasi. Mersi mult. Atat daca poti sa imi mai spui daca pot adauga si un font de culoare cand se conecteaza un admini astfel incat sa se diferentieze de chat.

Du kommer ikke til ende, hvis du stopper ved hvert trin

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

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 19-01-2016, 15:20:26 | Translate post to: ... (Click for more languages)

#include <colorchat>

si trebuie modificat mesajul sub forma

ColorChat(0, Color:GREEN, "[%s] %s sa iesit de pe server.", g_Rang[i], get_name(id))

Daca nu merge cu Color:GREEN, pui ChatColor:GREEN ...

Posibilitati:
Code:
   NORMAL = 1, // clients scr_concolor cvar color
   GREEN, // Green Color
   TEAM_COLOR, // Red, grey, blue
   GREY, // grey
   RED, // Red
   BLUE, // Blue




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

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

[~ Far Son och Bror ~]



Status: Offline
(since 17-02-2019 14:00)
Joined: 07 Apr 2011
Posts: 8084, Topics: 165
Location: Galati

Reputation: 1826.4
Votes: 132

   
Post Posted: 20-01-2016, 08:38:00 | Translate post to: ... (Click for more languages)

EDUTz wrote:
#include <colorchat>

si trebuie modificat mesajul sub forma

ColorChat(0, Color:GREEN, "[%s] %s sa iesit de pe server.", g_Rang[i], get_name(id))

Daca nu merge cu Color:GREEN, pui ChatColor:GREEN ...

Posibilitati:
Code:
   NORMAL = 1, // clients scr_concolor cvar color
   GREEN, // Green Color
   TEAM_COLOR, // Red, grey, blue
   GREY, // grey
   RED, // Red
   BLUE, // Blue

Gata, merge perfect. Mersi mult.


Du kommer ikke til ende, hvis du stopper ved hvert trin

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 -P!C@-, 20 January 2016 07:35



 
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) -> Counter-Strike: Help zone  


The time now is 27-04-2024, 22:36:27
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