Raised This Month: $51 Target: $400
 12% 

Setting maxspeed to certain ents.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
colby
Senior Member
Join Date: Jun 2005
Location: NC
Old 08-04-2006 , 17:21   Setting maxspeed to certain ents.
Reply With Quote #1

No errors, but any reason why this doesn't work in game?

Code:
public something(id) {     new origin[3],ent     get_user_origin(id,origin)         while((ent = find_ent_by_class(-1,"Player")) != 0) {                 new ent_origin[3]         get_user_origin(ent,ent_origin)                 if(get_distance(origin,ent_origin) <= 200) {             set_user_maxspeed(ent,0.5)         }                 else {             set_user_maxspeed(ent,-1.0)         }     }     }
colby is offline
Send a message via AIM to colby
 



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 03:59.


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