Raised This Month: $32 Target: $400
 8% 

Info Team MapZones 0.0.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-26-2010 , 11:50   Info Team MapZones 0.0.1
Reply With Quote #1

Note:

I had this idea longggggggggg time agoo, but in thats moments didn't have the knowledge to this so here i am making it. This is something like the Info Zones by Alka (http://forums.alliedmods.net/showthread.php?p=681655) but this is more simple, so if you don't want to edit an .ini and you want that the plugin do all automatic, this is the plugin for that. But also, you have to know ofcourse that you are limited, some zones aren't detected by the plugin.

Description:

When you send a chat message (say or say_team) only your teammates can see in what zone you are (after your name). So yo don't have to write telling to your teammates where you are.

Requirements:

Code:
#include <cstrike>

Only for counter-strike game.

Cvars:
  • itm_enable (default: 1) - Just enable the whole plugin or disable.

SMA Configuration:

Well, in the sma you can change the name of the MapZones, here an example.

Code:
//////////////////////////////////////////////////////// /////////* Here you can change mapzones names *///////// //////////////////////////////////////////////////////// new const mapZones[][] = {     "NoZone",     "BuyZone",     "BombTarget",     "HostageRescue",     "EscapeZone",     "VipSafety" }; //////////////////////////////////////////////////////// ///////////////* End modifications *//////////////////// ////////////////////////////////////////////////////////

To-Do List:
  • Add message with team info to radio message
  • Add message when player are killed

Changelog:
  • Version 0.0.1
    • First Release

P.S: I tested this plugin but only en LAN, so don't know if this work perfect in a public server, test it and tell me.
Attached Files
File Type: sma Get Plugin or Get Source (InfoMapZones.sma - 1079 views - 5.8 KB)
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 06-30-2010 at 17:54.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-26-2010 , 12:32   Re: Info Team MapZones 0.0.1
Reply With Quote #2

Nice Job and good idea
Vechta is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-26-2010 , 13:06   Re: Info Team MapZones 0.0.1
Reply With Quote #3

You should hook SayTeam message rather than say and say_team.

From czero_english.txt :

Code:
// Radio and chat strings can have control characters embedded to set colors.  For the control characters to be used, one must be at the start of the string.
// The control characters can be copied and pasted in notepad.
//  = 0x02 (STX) - Use team color up to the end of the player name.  This only works at the start of the string, and precludes using the other control characters.
//  = 0x03 (ETX) - Use team color from this point forward
//  = 0x04 (EOT) - Use location color from this point forward
//  = 0x01 (SOH) - Use normal color from this point forward

"Game_radio"					"%s1 (RADIO): %s2"
"Game_radio_location"				"%s1 @ %s2 (RADIO): %s3"
"Cstrike_Chat_CT_Loc"				"(Counter-Terrorist) %s1 @ %s3 :  %s2"
"Cstrike_Chat_CT"				"(Counter-Terrorist) %s1 :  %s2"
"Cstrike_Chat_T_Loc"				"(Terrorist) %s1 @ %s3 :  %s2"
"Cstrike_Chat_T"				"(Terrorist) %s1 :  %s2"
"Cstrike_Chat_CT_Dead"				"*DEAD*(Counter-Terrorist) %s1 :  %s2"
"Cstrike_Chat_T_Dead"				"*DEAD*(Terrorist) %s1 :  %s2"
"Cstrike_Chat_Spec"				"(Spectator) %s1 :  %s2"
"Cstrike_Chat_All"				"%s1 :  %s2"
"Cstrike_Chat_AllDead"				"*DEAD* %s1 :  %s2"
"Cstrike_Chat_AllSpec"				"*SPEC* %s1 :  %s2"
"Cstrike_Name_Change"				"* %s1 changed name to %s2"
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 06-26-2010 , 13:23   Re: Info Team MapZones 0.0.1
Reply With Quote #4

Modification: ALL ?
KadiR is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-26-2010 , 19:04   Re: Info Team MapZones 0.0.1
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
You should hook SayTeam message rather than say and say_team.

From czero_english.txt :

Code:
// Radio and chat strings can have control characters embedded to set colors.  For the control characters to be used, one must be at the start of the string.
// The control characters can be copied and pasted in notepad.
//  = 0x02 (STX) - Use team color up to the end of the player name.  This only works at the start of the string, and precludes using the other control characters.
//  = 0x03 (ETX) - Use team color from this point forward
//  = 0x04 (EOT) - Use location color from this point forward
//  = 0x01 (SOH) - Use normal color from this point forward

"Game_radio"					"%s1 (RADIO): %s2"
"Game_radio_location"				"%s1 @ %s2 (RADIO): %s3"
"Cstrike_Chat_CT_Loc"				"(Counter-Terrorist) %s1 @ %s3 :  %s2"
"Cstrike_Chat_CT"				"(Counter-Terrorist) %s1 :  %s2"
"Cstrike_Chat_T_Loc"				"(Terrorist) %s1 @ %s3 :  %s2"
"Cstrike_Chat_T"				"(Terrorist) %s1 :  %s2"
"Cstrike_Chat_CT_Dead"				"*DEAD*(Counter-Terrorist) %s1 :  %s2"
"Cstrike_Chat_T_Dead"				"*DEAD*(Terrorist) %s1 :  %s2"
"Cstrike_Chat_Spec"				"(Spectator) %s1 :  %s2"
"Cstrike_Chat_All"				"%s1 :  %s2"
"Cstrike_Chat_AllDead"				"*DEAD* %s1 :  %s2"
"Cstrike_Chat_AllSpec"				"*SPEC* %s1 :  %s2"
"Cstrike_Name_Change"				"* %s1 changed name to %s2"
Emmm, but SayTeam message exist? cuz here doesn't appear: http://wiki.amxmodx.org/Half-Life_1_Game_Events

Or you mean that i have to hook the SayText message and then get the channel string, and use "Cstrike_Chat_CT", "Cstrike_Chat_T", "Cstrike_Chat_CT_Dead" and "Cstrike_Chat_T_Dead"? Or hook exactly the SayTeam message?

Quote:
Originally Posted by KadiR View Post
Modification: ALL ?
Sry, fixed.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 06-26-2010 at 19:06.
Alucard^ is offline
Send a message via Skype™ to Alucard^
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-26-2010 , 19:19   Re: Info Team MapZones 0.0.1
Reply With Quote #6

SayText
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
just75100
Member
Join Date: Oct 2008
Old 06-26-2010 , 20:24   Re: Info Team MapZones 0.0.1
Reply With Quote #7

Quote:
Plugin failed to compile! Please try contacting the author.
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/3/1/0/0/1/68440.attach(102) : error 001: expected token: ";", but found "-identifier-"
/home/groups/alliedmodders/forums/files/3/1/0/0/1/68440.attach(104) : error 001: expected token: ";", but found "-identifier-"

2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/compiled3/68440.amx (compile failed).
HOHO
just75100 is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-26-2010 , 20:28   Re: Info Team MapZones 0.0.1
Reply With Quote #8

Quote:
Originally Posted by just75100 View Post
HOHO
Ups, sry... little mistake, fixed.

@ Connor

Okey, thanks... i will do it with that method.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 06-28-2010 , 04:41   Re: Info Team MapZones 0.0.1
Reply With Quote #9

some suggestion, maybe some one have done !

add it on radio ?

edited:Or I can try to do this part for you as you like !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-28-2010 , 11:29   Re: Info Team MapZones 0.0.1
Reply With Quote #10

Quote:
Originally Posted by K.K.Lv View Post
some suggestion, maybe some one have done !

add it on radio ?

edited:Or I can try to do this part for you as you like !
Quote:
Originally Posted by Alucard^
To-Do List:
  • Add message with team info to radio message
  • Add message when player are killed
And, no... thanks, i can support the plugin.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 20:12.


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