It is currently 18 Oct 2018 22:04



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
 Chat color pentru csgo remake 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 01 Sep 2018 20:50
Posts: 38
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
nu ranku..ele sunt verzi.
Pe mine ma int ca adminii sa aiba culoare la chat..
adica sa scrie verde rosu orice


13 Sep 2018 10:47
Profile multumesc WWW
Membru, skill +3
Membru, skill +3
User avatar

Joined: 20 May 2016 16:28
Posts: 1495
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: GO.TRIED.RO
Fond eXtream: 0
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 #


13 Sep 2018 20:28
Profile multumesc YIM WWW
Membru, skill 0
Membru, skill 0

Joined: 15 Nov 2009 11:01
Posts: 55
Location: Spanglia la şeşit
Detinator Steam: Da
CS Status: Cica ma bat botii
Detinator server CS: respawn.hellgods.com
Fond eXtream: 0
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

_________________
???


15 Sep 2018 01:52
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 01 Sep 2018 20:50
Posts: 38
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
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 12:42, edited 1 time in total.

Edit: Am adaugat [Sursa=]



16 Sep 2018 20:32
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group