AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   silentkill whole team (https://forums.alliedmods.net/showthread.php?t=192283)

striker07 08-08-2012 14:25

silentkill whole team
 
I tried to make silentkill on a whole team to force the round end but its not working:
my code:
PHP Code:

  static iPlayers[32], iNumidiPlayer;
  
get_playersiPlayersiNum"e""T" ); 
  for ( 
id=0id<iNumid++ )
  {
   
iPlayer iPlayers[id];
   
user_silentkill(iPlayer);
  } 

is it possible that if the get_players function is used to much that it starts bugging? i have had other porblems related with get_players being buggy

Liverwiz 08-08-2012 14:38

Re: silentkill whole team
 
Code:

  get_players( iPlayers, iNum, "e", "T" );
:arrow:
PHP Code:

  get_playersiPlayersiNum"ae""TERRORIST" ); 


striker07 08-08-2012 18:08

Re: silentkill whole team
 
ah ok "T" doesnt count as terrorist then?

Napoleon_be 08-08-2012 18:58

Re: silentkill whole team
 
Quote:

Originally Posted by striker07 (Post 1767289)
ah ok "T" doesnt count as terrorist then?

Nope, only CT does

Liverwiz 08-08-2012 19:01

Re: silentkill whole team
 
Quote:

Originally Posted by striker07 (Post 1767289)
ah ok "T" doesnt count as terrorist then?

No. You also want to grab only alive players (flag "a"), it'll cut down your iterations a bit, as well as i'm sure silent kill checks if they are alive as well. But that i don't know for sure.

striker07 08-09-2012 07:47

Re: silentkill whole team
 
ok thx for the help

ConnorMcLeod 08-09-2012 10:14

Re: silentkill whole team
 
You should rip silentkill code because you don't need to block / unblock DeathMsg on each iteration, but only before and after the loop.


All times are GMT -4. The time now is 05:44.

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