Raised This Month: $ Target: $400
 0% 

say_team - minor problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-31-2010 , 12:48   Re: say_team - minor problem
Reply With Quote #5

chat(0, ...

That means it's sent to all players, I guess your chat() function is a copy of colorchat or something, and first arg is the player ID.

So, you must do a loop and see wich player is on player's team and send'em the message.

You could either use get_players() function (I understand it's buggy) or just a for() loop and check stuff.

Also, create a variable to hold is_user_alive() if you use the loop... and also, you can do this:

Code:
chat(0, "!team[Team] *%s* !g%s !y: !team%s", (alive ? "ALIVE" : "DEAD"), name, mes);
__________________

Last edited by Hunter-Digital; 07-31-2010 at 12:51.
Hunter-Digital is offline
 



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 00:16.


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