Is there a way where I can script my event where it detects if the players inside the map "guild_vs1" are still alive every x number of seconds?
Try
- script tesqweqweast -1,{
OnInit:
initnpctimer;
end;
OnTimer5000:
stopnpctimer;
deletearray .players;
addrid(5,1,"guild_vs1");
.players[getarraysize(.players)] = getcharid(3);
detachrid;
while( .@i < getarraysize(.players) ){
if( attachrid( .players[.@i] ) )
if( HP && compare( strcharinfo(3),"guild_vs1" ) )
.@alive++;
.@i++;
}
if( .@alive ){
initnpctimer;
end;
}
deletearray .players;
announce "Players are all the dead",0;
mapwarp "guild_vs1","pro