Raised This Month: $ Target: $400
 0% 

silentkill whole team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 08-08-2012 , 14:25   silentkill whole team
Reply With Quote #1

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
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-08-2012 , 14:38   Re: silentkill whole team
Reply With Quote #2

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

PHP Code:
  get_playersiPlayersiNum"ae""TERRORIST" ); 
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 08-08-2012 at 14:40.
Liverwiz is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 08-08-2012 , 18:08   Re: silentkill whole team
Reply With Quote #3

ah ok "T" doesnt count as terrorist then?
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 08-08-2012 , 18:58   Re: silentkill whole team
Reply With Quote #4

Quote:
Originally Posted by striker07 View Post
ah ok "T" doesnt count as terrorist then?
Nope, only CT does
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-08-2012 , 19:01   Re: silentkill whole team
Reply With Quote #5

Quote:
Originally Posted by striker07 View Post
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.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 08-09-2012 , 07:47   Re: silentkill whole team
Reply With Quote #6

ok thx for the help
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-09-2012 , 10:14   Re: silentkill whole team
Reply With Quote #7

You should rip silentkill code because you don't need to block / unblock DeathMsg on each iteration, but only before and after the loop.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 05:44.


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