Posts
167
Respect
44Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!grief_msg()
{
players = get_players();
for (i = 0; i < players.size; i++)
{
while( players[i].sessionstate == "spectator" || players[i] maps\_laststand::player_is_in_laststand() )
{
players = get_players();
players_alive = 0;
for( i = 0; i < players.size; i++ )
{
if( is_player_valid(players[i]) )
{
players_alive++;
}
}
if( players_alive == 1 && players.size != 1 )
{
iprintlnbold("All Enemies Down!");
wait (2.5);
iprintlnbold("Survive to Win!");
break;
}
else if( players_alive == 2 && players.size != 2 )
{
iprintlnbold("Enemy Down! [1 Remaining]");
break;
}
else if( players_alive == 3 && players.size != 3 )
{
iprintlnbold("Enemy Down! [2 Remaining]");
break;
}
else
{
return;
}
wait(0.05);
}
}
}![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
I'm trying to have a message shown whenever a player downs or bleeds out but don't know exactly how to do it. This is what I've got
Can anyone help?
players[i] waittill("player_downed");
iprintlnbold(players.size-1+" left remaining");