Raised This Month: $ Target: $400
 0% 

REQ: Chat Commands Plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-23-2008 , 11:06   Re: REQ: Chat Commands Plugin.
Reply With Quote #51

Good ideas
Quote:
you should include this into that plugin, and do commands like

.tag T <tag>
.tag CT <tag>
Sure, it will be very simple to implement.

About client_infochange() I think it will check nick only if ct and t tags are defined, so require clearing command like: .tag OFF


Edit.
I see that ".tag" command can replace work ".start Tag1 Tag2", so it can be remade to simple ".start" again.

Last edited by Scherzo; 11-23-2008 at 11:15.
Scherzo is offline
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-23-2008 , 13:12   Re: REQ: Chat Commands Plugin.
Reply With Quote #52

Next release

Combined Chat Commands and Tags plugins + xPaw ideas

Only functions which I list there are changed - rest is like in earlier versions.

.start works normal - without Tag1 Tag2 arguments
before start match you have to define clan tags:
.tag - display info about current tags and whole '.tag' syntax
.tag T <tagname>
sets all terrorist name with <tagname> and save it for .score function
.tag CT <tagname>
sets all counter terroris name with <tagname> and save it for .score function
.tag OFF
removes tags,
Any command from ".tag" family can be typed only before 1st and after 2nd half.


When both tags are defined any change of nick are controlled (react for removing tag ). Plugin support both sides of match, so don`t need change .tag T and .tag CT after swap.
Attached Files
File Type: sma Get Plugin or Get Source (chatcommands.sma - 658 views - 9.3 KB)

Last edited by Scherzo; 11-24-2008 at 10:25.
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-23-2008 , 16:31   Re: REQ: Chat Commands Plugin.
Reply With Quote #53

WOW Scherzo, that is just brilliant. Thank You so Much! I will test it tomorrow after school and be back with feedback.
So .tag T and .tag CT change the team players' name, adding the tag in their name. So when I type .score, it will appear the tags I've set ?
__________________
We live in a world where PIZZA arrives faster than the Police !

Last edited by The_Ghost; 11-23-2008 at 16:34.
The_Ghost is offline
Send a message via Skype™ to The_Ghost
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-24-2008 , 09:50   Re: REQ: Chat Commands Plugin.
Reply With Quote #54

Yes, it works like you wrote.
No problem. I very like writing sth like this. Thanks xPaw for great suggestion.

---
I found sth to fix - when infochanged it checks names of all players, but it is not necessary - it should check this one, who really changed nick.
Another is mixed tags during swap.

Last edited by Scherzo; 11-24-2008 at 10:13.
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-24-2008 , 10:16   Re: REQ: Chat Commands Plugin.
Reply With Quote #55

I don't quite understand. What bug is this ?
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-24-2008 , 10:27   Re: REQ: Chat Commands Plugin.
Reply With Quote #56

Not need check all players when only one change his name. It is about CPU usage. Second change is bad tags changing on start 2nd half. Both problems fixed. Uploaded new in my upper post - this one: http://forums.alliedmods.net/showpos...6&postcount=52
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-24-2008 , 10:45   Re: REQ: Chat Commands Plugin.
Reply With Quote #57

so now this version is final ?
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
Scherzo
Senior Member
Join Date: Feb 2007
Location: Kwidzyn, Poland
Old 11-24-2008 , 10:47   Re: REQ: Chat Commands Plugin.
Reply With Quote #58

Yes. Write if you want change/add something. Do you need message "if you want know result type .score into chat" or any?
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-24-2008 , 12:26   Re: REQ: Chat Commands Plugin.
Reply With Quote #59

no. it's fine. thank you one more time .
__________________
We live in a world where PIZZA arrives faster than the Police !
The_Ghost is offline
Send a message via Skype™ to The_Ghost
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-24-2008 , 13:15   Re: REQ: Chat Commands Plugin.
Reply With Quote #60

i have another idea)
so when you saying .start you can select the match rounds
12 or 15, or do it like this

.start 15

** MR is %s **
__________________
xPaw is offline
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 01:41.


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