Raised This Month: $ Target: $400
 0% 

messageBegin TeamInfo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 08-06-2013 , 07:06   messageBegin TeamInfo
Reply With Quote #1

Hello, here is my question, if you do this script
Code:
if(cs_get_user_team(player) != CS_TEAM_T)
	{
		message_begin(MSG_ALL, get_user_msgid("TeamInfo"))
		write_byte(player)
		write_string("TERRORIST")
		message_end()
	}
	
	message_begin(MSG_ALL, get_user_msgid("SayText"))
	write_byte(player)
	write_string(messg[0])
	message_end()
	
	server_cmd("kick #%d ^"You are banned from this server^"", get_user_userid(player))
it will be important to the players with whom we work, to reclaim his former team?
For example a player was in command CT but after he became a script in T
it is important that he return to the team in which he was?
Sutar is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-06-2013 , 11:54   Re: messageBegin TeamInfo
Reply With Quote #2

You are using old colorchat method.

New method consists in using fakes (out of players range) indexes as argument 1 (sender index).

See plugin and stock : http://forums.alliedmods.net/showthread.php?p=851160

Anyway, it gonna be integrated to amxx 1.8.3
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-06-2013 , 13:40   Re: messageBegin TeamInfo
Reply With Quote #3

I have not asked you, I asked the team to object to the player when we got kicked him?
Sutar is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-06-2013 , 17:33   Re: messageBegin TeamInfo
Reply With Quote #4

Either your english is too complex for me, and then i think you need to wait for someone else answer, either your english is really bad and i think you would have better to post in "other languages" forum.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 08-06-2013 , 19:59   Re: messageBegin TeamInfo
Reply With Quote #5

I don't see how it's related to color chat... May I miss something?

And yes, he's english sucks
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 08-06-2013 at 20:00.
joropito is offline
Send a message via MSN to joropito
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-07-2013 , 00:39   Re: messageBegin TeamInfo
Reply With Quote #6

Sending TeamInfo with a player index, than sending a MSG_ALL SayText message with that same player index, looks like colorchat, anyway, i hadn't realized that it could be completely something else.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-07-2013 , 02:36   Re: messageBegin TeamInfo
Reply With Quote #7

Quote:
Either your english is too complex for me, and then i think you need to wait for someone else answer, either your english is really bad and i think you would have better to post in "other languages" forum.
I'm from Ukraine, and do not know much English. (
The script makes the message in red

But when I do the red message

Code:
message_begin(MSG_ALL, get_user_msgid("TeamInfo"))
write_byte(player)
write_string("TERRORIST")
message_end()
A team player CT changed to T
But then player kick

Quote:
server_cmd("kick #%d ^"You are banned from this server^"", get_user_userid(player))
The issue is that the player must return his former team where he was? or not?

joropito
Quote:
I don't see how it's related to color chat... May I miss something?

And yes, he's english sucks
If you had to communicate with foreigners without knowing their language, I said to you: ПШЛНХ
Sutar is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 08-07-2013 , 07:51   Re: messageBegin TeamInfo
Reply With Quote #8

Quote:
Originally Posted by Sutar View Post
If you had to communicate with foreigners without knowing their language, I said to you: ПШЛНХ
I don't know what it means. My language is not english but this forum is english.
Good luck
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 08:57   Re: messageBegin TeamInfo
Reply With Quote #9

Since you are kicking the player, why does it matter what team he is on?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-07-2013 , 13:37   Re: messageBegin TeamInfo
Reply With Quote #10

Quote:
I don't know what it means. My language is not english but this forum is english.
Good luck
Everyone learns ... and I'll learn)

Quote:
Since you are kicking the player, why does it matter what team he is on?
I asked about it, because there may be errors ... and suddenly the server will drop))
Thank you)
Sutar 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 15:47.


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