Raised This Month: $ Target: $400
 0% 

Random CT die


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 11-20-2010 , 19:14   Random CT die
Reply With Quote #1

Hi i have script:

Code:
public ct()
 {
	static players[32], pnum;
	get_players(players, pnum, "ae", "CT");
	if(pnum>0)
	random_ct(players[ random(pnum) ]);
	
 }
and

Code:
public random_ct(id){
user_silentkill(id); 
}
If i set command to say /kill - random CT will be dead. But if i set task, all players on the server are dead (CT and T) ...
Why ? I need only one CT die.

Last edited by Tonda; 11-20-2010 at 19:53.
Tonda is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-20-2010 , 20:16   Re: Random CT die
Reply With Quote #2

Show how you used set_task().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Tonda
Senior Member
Join Date: Aug 2009
Old 11-21-2010 , 04:31   Re: Random CT die
Reply With Quote #3

set_task(8.0, "ct");
Tonda is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-21-2010 , 09:37   Re: Random CT die
Reply With Quote #4

That should still only kill 1 player.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Tonda
Senior Member
Join Date: Aug 2009
Old 11-21-2010 , 16:42   Re: Random CT die
Reply With Quote #5

Realy no, kill all players
Tonda is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-21-2010 , 16:58   Re: Random CT die
Reply With Quote #6

Show full code.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 11:22.


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