AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   messageBegin TeamInfo (https://forums.alliedmods.net/showthread.php?t=222753)

Sutar 08-06-2013 07:06

messageBegin TeamInfo
 
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?

ConnorMcLeod 08-06-2013 11:54

Re: messageBegin TeamInfo
 
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

Sutar 08-06-2013 13:40

Re: messageBegin TeamInfo
 
I have not asked you, I asked the team to object to the player when we got kicked him?

ConnorMcLeod 08-06-2013 17:33

Re: messageBegin TeamInfo
 
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.

joropito 08-06-2013 19:59

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

And yes, he's english sucks

ConnorMcLeod 08-07-2013 00:39

Re: messageBegin TeamInfo
 
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.

Sutar 08-07-2013 02:36

Re: messageBegin TeamInfo
 
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: ПШЛНХ

joropito 08-07-2013 07:51

Re: messageBegin TeamInfo
 
Quote:

Originally Posted by Sutar (Post 2007520)
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

YamiKaitou 08-07-2013 08:57

Re: messageBegin TeamInfo
 
Since you are kicking the player, why does it matter what team he is on?

Sutar 08-07-2013 13:37

Re: messageBegin TeamInfo
 
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)


All times are GMT -4. The time now is 15:47.

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