AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Team Info (https://forums.alliedmods.net/showthread.php?t=125964)

Amonel 05-04-2010 02:47

Team Info
 
Can anyone help me with the folowing code?

It prints the message "X joined Y team" every new round start.... :/
How can i block it ?

Code:

code deleted, thanks Leon for help :)

Exolent[jNr] 05-04-2010 02:54

Re: Team Info
 
You probably have another plugin which sends a TeamInfo event on round start.

epic . 05-04-2010 03:10

Re: Team Info
 
the code of the whole you post is to prints the message "X joined Y team" every new round start
if you want to block it, why you made this code :\
:)

Exolent[jNr] 05-04-2010 03:21

Re: Team Info
 
Quote:

Originally Posted by epic . (Post 1169911)
the code of the whole you post is to prints the message "X joined Y team" every new round start
if you want to block it, why you made this code :\
:)

That is not the purpose of the code.
The purpose of that code is to display that message every time the TeamInfo event is sent.

epic . 05-04-2010 04:15

Re: Team Info
 
Quote:

Originally Posted by Exolent[jNr] (Post 1169921)
That is not the purpose of the code.
The purpose of that code is to display that message every time the TeamInfo event is sent.

Not all the people here is good at English, if you`d like to talking pedantically, you`d better find a rival who`s English is better than me. Hahaha

Amonel 05-04-2010 13:34

Re: Team Info
 
no i don't have any ohter plugin with that event..

i also have an older team info plugin, that prints ONLY when a person first joins the team, if he moves to another team it won't print..

ConnorMcLeod 05-04-2010 13:50

Re: Team Info
 
TeamInfo message is sent every time a player spawns.

Amonel 05-05-2010 14:38

Re: Team Info
 
so is there any ohter event i could use ?

Bugsy 05-05-2010 18:25

Re: Team Info
 
Use a global array, set the value to 0 at client disconnect. When teaminfo is called, only assign the team value to the array if the current array value is 0. Try to do it yourself, if you cannot figure it out I will do it for you.

Edit: Sorry, I misread your post.

Amonel 05-05-2010 18:57

Re: Team Info
 
yes, i tried and worked, BUT when a player moved to another team it didn't print the message..

it printed only the first time he joins the server.. :/


All times are GMT -4. The time now is 03:57.

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