Chat color pentru csgo remake

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

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

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Kyal
Membru, skill 0
Membru, skill 0
Posts: 51
Joined: 01 Sep 2018, 19:50
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

13 Sep 2018, 09:47

nu ranku..ele sunt verzi.
Pe mine ma int ca adminii sa aiba culoare la chat..
adica sa scrie verde rosu orice
Envato
User avatar
Jucks
Membru, skill +4
Membru, skill +4
Posts: 1538
Joined: 20 May 2016, 15:28
Detinator Steam: Da
Fond eXtream: 0
Contact:

13 Sep 2018, 19:28

Kyal wrote:nu ranku..ele sunt verzi.
Pe mine ma int ca adminii sa aiba culoare la chat..
adica sa scrie verde rosu orice
asta nu cred ca poti face doar setat din baza csgoremake de cel care a facut pluginul si sa seteze ca admini sa scrie cu verde deoarece daca pui tu un plugin de pe net se face bug la chat , trebuie editata baza
Detinator : # Go.Tried.Ro #
NeGaT1wE
Membru, skill 0
Membru, skill 0
Posts: 60
Joined: 15 Nov 2009, 10:01
Detinator Steam: Da
CS Status: Cica ma bat botii
Detinator server CS: respawn.hellgods.com
Location: Spanglia la şeşit
Has thanked: 1 time
Contact:

15 Sep 2018, 00:52

lasă sursa aici de la fix_chat poate se încumetă careva sa iti faca pentru admin sa scrie cu verde din fix_chat ca aia iti trebuie tie. nu alt plugin
Kyal
Membru, skill 0
Membru, skill 0
Posts: 51
Joined: 01 Sep 2018, 19:50
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

16 Sep 2018, 19:32

Sursa:
| Afiseaza codul
#include <amxmodx>
#include <cstrike>

native csgor_get_user_rang(id, szout[], len);
native csgor_is_user_logged(id);

new g_maxplayers;
new g_saytxt;
new g_ghost;

public plugin_init() 
{
   register_plugin("ChatFix CS:GO Remake", "3.1", "siriusmd99");
   g_ghost = register_cvar("amx_chatfix_ghostchat", "1")
   g_saytxt = get_user_msgid("SayText");
   g_maxplayers=get_maxplayers();
   register_clcmd("say", "HookSay")
   register_clcmd("say_team", "HookSay")
}


public HookSay(id)
{
   new g_typed[192]
   new g_message[192]
   new g_name[32]
   
   read_args(g_typed, charsmax(g_typed))
   remove_quotes(g_typed)
   
   trim(g_typed);
   
   if(equal(g_typed, "") || !is_user_connected(id) || !id)
   return PLUGIN_HANDLED;
   
   get_user_name(id, g_name, charsmax(g_name));
   
   new szArg[10], szTeamP[32]
   new bool:isTeam;
   read_argv(0,szArg,charsmax(szArg))
   new CsTeams:iTeam = cs_get_user_team(id);
   if(equali(szArg, "say_team"))
   {
      switch(iTeam)
      {
         case CS_TEAM_CT: formatex(szTeamP, charsmax(szTeamP), "(CT) ");
            case CS_TEAM_T: formatex(szTeamP, charsmax(szTeamP), "(Terrorist) ");
            case CS_TEAM_SPECTATOR: formatex(szTeamP, charsmax(szTeamP), "(Spectator) ");
         }
      isTeam = true;
   }
   
   
   if(csgor_is_user_logged(id))
   {
      new prefix[64]
      csgor_get_user_rang(id, prefix, charsmax(prefix));
      formatex(g_message, charsmax(g_message), "^1%s%s^4[%s]^3 %s :^1 %s", cs_get_user_team(id) == CS_TEAM_SPECTATOR ? isTeam ? "" : "*SPEC* " : (!is_user_alive(id) ? "*DEAD* " : ""), isTeam ? szTeamP : "",prefix, g_name, g_typed);
   }
   else
   {
      formatex(g_message, charsmax(g_message), "^1%s%s^3%s :^1 %s", cs_get_user_team(id) == CS_TEAM_SPECTATOR ? isTeam ? "" : "*SPEC* " : (!is_user_alive(id) ? "*DEAD* " : ""), isTeam ? szTeamP : "", g_name, g_typed);
   }

   new iCvar = get_pcvar_num(g_ghost)

   for(new i = 1; i <= g_maxplayers; i++)
   {
      if(!is_user_connected(i))
      continue
      
      if(isTeam && cs_get_user_team(i) != iTeam)
      continue
      
      if(!iCvar)
      {
         if(is_user_alive(id) && is_user_alive(i) || !is_user_alive(id) && !is_user_alive(i) || get_user_flags(i) & ADMIN_KICK)
         {
            send_message(g_message, id, i)
         }
      }
      else
      {   
         send_message(g_message, id, i)
      }
   }
   
   return PLUGIN_HANDLED;
}

send_message(const message[], const id, const i)
{
   message_begin(MSG_ONE, g_saytxt, {0, 0, 0}, i)
   write_byte(id)
   write_string(message)
   message_end()
}
Last edited by Jah# on 17 Sep 2018, 11:42, edited 1 time in total.
Reason: Edit: Am adaugat [Sursa=]
Post Reply

Return to “Cereri”

  • Information