Raised This Month: $ Target: $400
 0% 

something++ and distance


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 10-12-2005 , 19:40   something++ and distance
Reply With Quote #1

1. Let's say I have a infinite task which does something. Well, I want that with every new cycle of task something gets bigger. So number which is growing and can be set to temp entity message.

2. How can I get all players in defined distance I define, and then do something on them?

Thanks.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-12-2005 , 19:43  
Reply With Quote #2

1)

Code:
public MySetTaskFunc(id) { munum++ }

2) Huh ?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-12-2005 , 19:56  
Reply With Quote #3

Code:
public explode_suicide(id) {         if(is_user_connected(i) && is_user_alive(i))         {                 new origin1                 get_user_origin(id,origin1)                 for(new i=0;i<=32;i++)                 {                         new origin2[3]                         get_user_origin(i,origin2)                         new distance = get_distance(origin1,origin2)                         if(distance<=get_cvar_num("Defined_Distance")                         {                                 user_kill(i)                         }                 }         }         return PLUGIN_HANDLED }
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 23:37.


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