when the player is died and he is terrorist then wht will be his Team Name when he is spectating someone..i want to loop msg to all that player who are died in that team which is winner of that round..
PHP Code:
UNASSIGNED = 0,
T = 1,
CT = 2,
SPECTATOR = 3
here is my code this works but not for players who died in winning team..
PHP Code:
public Round_End()
{
static textmsg[22];
get_msg_arg_string(2, textmsg, 21);
if(equal(textmsg, "#Terrorists_Win"))
{
new iPlayers[32], iNum, player;
get_players(iPlayers, iNum, "a");
for(new i; i <= iNum; i++)
{
player = iPlayers[i];
if(get_user_team(player) == 1)
{
here is msg when t wins
}
if(get_user_team(player) == 2)
{
when t wins this msg display to all ct players
}
}
}
else if(equal(textmsg, "#CTs_Win"))
{
new iPlayers[32], iNum, player;
get_players(iPlayers, iNum, "a");
for(new i; i <= iNum; i++)
{
player = iPlayers[i];
if(get_user_team(player) == 2)
{
// here is msg when ct wins
}
if(get_user_team(player) == 1)
{
// when ct wins this msg display to all terrorist players
}
}
}
return PLUGIN_CONTINUE;
}
__________________