View Single Post
colby
Senior Member
Join Date: Jun 2005
Location: NC
Old 08-04-2006 , 19:33   Re: Setting maxspeed to certain ents.
Reply With Quote #5

The server doesn't crash anymore, but it still doesn't work. I don't know if the default runspeed varies for different mods, but for TS, it is most certainly 320.

Here is what I have:
Code:
public something(id) {     new origin[3],ent     get_user_origin(id,origin)     set_user_maxspeed(id,200.0)         while((ent = find_ent_by_class(ent,"player")) != 0 && ent != id) {                 new ent_origin[3]         get_user_origin(ent,ent_origin)                 if(get_distance(origin,ent_origin) <= 200) {             set_user_maxspeed(ent,180.0)         }                 else {             set_user_maxspeed(ent,320.0)         }     } }
colby is offline
Send a message via AIM to colby