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 11-22-2008 , 09:46   Re: REQ: Chat Commands Plugin.
Reply With Quote #21

yes. for chat message too.
__________________
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-22-2008 , 09:52   Re: REQ: Chat Commands Plugin.
Reply With Quote #22

Done.

Blocking multi-type commands .start, .stop, .restart.
Attached Files
File Type: sma Get Plugin or Get Source (chatcommands.sma - 860 views - 3.6 KB)
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-22-2008 , 09:57   Re: REQ: Chat Commands Plugin.
Reply With Quote #23

thank you. and what about the score command ? is my second idea good ?
__________________
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-22-2008 , 10:02   Re: REQ: Chat Commands Plugin.
Reply With Quote #24

Cvar is not neccesary. I can catch "say .start" and "say .stop" in second plugin. If you want I can add menu for "say .stop" with question:

Do you want save result: 1. 7:8 2. ?

Next start/restart switch place of saving points from teams (to support switch teams).

Edit.
I can save results to global array after 15 rounds.
I must combine both ideas (cmds and .score) to one plugin.

Edit2.
In attachment, the latest version. I can`t test it alone.

.start - enable counting scores, sets number of half (so have to be typed once per half)
.restart - enable counting scores and reset array with scores
.stop - disable counting scores
.score - shows score in format [1] %d:%d [2], when it will be really work I could change 1 and 2 to You and Enemy depends on player`s team.

I added message about which half is starting (diagnostic).
Attached Files
File Type: sma Get Plugin or Get Source (chatcommands.sma - 803 views - 4.8 KB)

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

but these commands won't be messed up with the other plugins ?
Example of score: CT: x - T: y.
__________________
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-22-2008 , 10:51   Re: REQ: Chat Commands Plugin.
Reply With Quote #26

Shouldn`t, we must check it. Yeah, good idea with CT and T tags
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-22-2008 , 10:55   Re: REQ: Chat Commands Plugin.
Reply With Quote #27

ok i will test it in about an hour or so. i will come back and give you the feedback.
__________________
We live in a world where PIZZA arrives faster than the Police !

Last edited by The_Ghost; 11-22-2008 at 12:27.
The_Ghost is offline
Send a message via Skype™ to The_Ghost
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-22-2008 , 13:16   Re: REQ: Chat Commands Plugin.
Reply With Quote #28

back from testing, some observations to say.
when you type .demo, it makes me demo, not the player that I type.
example: .demo player -> execs player the command record ... etc.
the score: after you change teams, when you type .score the score is 0:0. so it's not saved. and the center messages, it's too low, make it a bit up. and i think it would be better if you would make the plugin mentioned above, one with the cvar to turn on and off the plugin and put a standard tag to the teams.
__________________
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-22-2008 , 13:40   Re: REQ: Chat Commands Plugin.
Reply With Quote #29

Quote:
when you type .demo, it makes me demo, not the player that I type.
Right, when rewriting console message to chat message I changed 'player' to 'id', because it usually is there.

About score, you got message:
Start of half: 1
and
Start of half: 2
Only by once?
Scherzo is offline
The_Ghost
Senior Member
Join Date: Jun 2006
Location: RoMaNiA
Old 11-22-2008 , 13:42   Re: REQ: Chat Commands Plugin.
Reply With Quote #30

yes. but the score from the chat wasn't saved. but I don't understand. when the first 15 rounds are finished and the teams are swapped, the stage number is finished ? or after you type .restart ?
__________________
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 11:08.


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