Raised This Month: $ Target: $400
 0% 

Check if player WAS alive when he join spectator team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 12-24-2008 , 21:42   Check if player WAS alive when he join spectator team
Reply With Quote #1

how do we check if a player join spectator when he was still alive? currently this what i have but the chat message doesnt seem to be printed when i use is_user_alive

Code:
public plugin_init()
{
	// bla bla....
       	register_event( "TeamInfo", "join_team", "a")
}

public join_team()
{
	new id = read_data(1)
	
	static user_team[32]
	read_data(2, user_team, 31);

	if(user_team[0] == 'S' && is_user_alive(id))
	         client_print(0, print_chat, "Someone entered Spectator"
}

Last edited by Mlk27; 01-07-2009 at 17:38.
Mlk27 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 09:06.


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