Raised This Month: $51 Target: $400
 12% 

REQ: Chat Commands Plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 06-22-2009 , 06:03   Re: REQ: Chat Commands Plugin.
Reply With Quote #151

and what players do you want to see ? the ones on the serveR ? You can easily press TAB.
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
MajeStik
Member
Join Date: Jun 2009
Old 06-22-2009 , 06:10   Re: REQ: Chat Commands Plugin.
Reply With Quote #152

I want to show :

Team A : name , name , name , name , name
Team B : name , name , name , name , name

Code:
public showTeams(id)
{
    new name[32], team, all_name[sizeof(name) * 32];
    for(new i = 1;i <= g_max_clients;i++)
    {
        if(!is_user_connected(i))
            continue;
        
        team = fm_get_user_team(i);
        if(team != TEAM_T && team != TEAM_CT)
            continue;
        
        get_user_name(i,name,sizeof(name) - 1);
        if(all_names[team][0])
            format(all_names[team], sizeof(all_names[]) - 1, "%s, %s", all_names[team], name);
        else
            copy(all_names[team], sizeof(all_names[]) - 1, name);
    }
    
    console_print(id, "Echipa CT: %s ; Echipa T: %s", all_names[TEAM_T], all_names[TEAM_CT]);
    client_print(id,print_chat,"Echipa T: %s ; Echipa CT: %s", all_names[TEAM_T], all_names[TEAM_CT]);
    return PLUGIN_HANDLED;
}
This code make errors on compile

Last edited by MajeStik; 06-22-2009 at 06:13.
MajeStik is offline
MajeStik
Member
Join Date: Jun 2009
Old 06-22-2009 , 06:52   Re: REQ: Chat Commands Plugin.
Reply With Quote #153

I was unable too see page 16.Now I can and I edit my post
MajeStik is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-22-2009 , 06:59   Re: REQ: Chat Commands Plugin.
Reply With Quote #154

all_name[sizeof(name) * 32];
wtf ?
Do it like
all_name[ 196 ]; or any other size
__________________
xPaw is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 06-22-2009 , 16:15   Re: REQ: Chat Commands Plugin.
Reply With Quote #155

Good Idea. Add it to the main code (.teams). And new suggestion: block the usage of .map command while game is running. Only when match is over or cancelled the command can be used.
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
MajeStik
Member
Join Date: Jun 2009
Old 06-23-2009 , 04:06   Re: REQ: Chat Commands Plugin.
Reply With Quote #156

I have a problem :-? I activated the tags.Whe I joined on CT my nick changed in a.MajeStik.When I change the team my nick changed in b.a.MajeStik.I want to remain the first tag and after the match end to reset the tags.I want tags to be activated at the match start
MajeStik is offline
Old 06-25-2009, 07:47
arnaldo_silva
This message has been deleted by arnaldo_silva.
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 06-06-2010 , 06:23   Re: REQ: Chat Commands Plugin.
Reply With Quote #157

What happened to Scherzo ?
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-06-2010 , 06:40   Re: REQ: Chat Commands Plugin.
Reply With Quote #158

If you want to use chat commands, then there is different plugin here: http://forums.alliedmods.net/showthr...39#post1160139
__________________
Impossible is Nothing
Sylwester is offline
pepe_thugs
Senior Member
Join Date: Aug 2010
Location: Portugal , Braga
Old 05-20-2011 , 07:40   Re: REQ: Chat Commands Plugin.
Reply With Quote #159

Good idea guys Scherzo , The Ghost and xPaw
But the code .tag have one error.
Because the admin type ".a" to the tag terrorist team and if modify to the "b." the nick the player is "a.b.player" .
And one more idea will be can add is the code ".pass" and ".nopass" to changes sv_password. Thanks and nice work

Last edited by pepe_thugs; 05-20-2011 at 13:58.
pepe_thugs is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 06-30-2011 , 06:04   Re: REQ: Chat Commands Plugin.
Reply With Quote #160

Remove the previous tags first.
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode