Raised This Month: $ Target: $400
 0% 

users close to reigion?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 10-10-2007 , 05:25   users close to reigion?
Reply With Quote #1

how can i cheek if a player is close to a reigion.
becase i gonna move a player to a reigion and before i do that
i wanna cheek so no one is close so they dont get stuck.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 10-10-2007 , 05:30   Re: users close to reigion?
Reply With Quote #2

You can cheek with trace_hull.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-10-2007 , 05:36   Re: users close to reigion?
Reply With Quote #3

This tut should help you : http://forums.alliedmods.net/showthread.php?t=49829
ConnorMcLeod is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 10-13-2007 , 07:47   Re: users close to reigion?
Reply With Quote #4

is thare enything similar to trace hull in fakemeta?
thinks it quite bad just to have engine for one command.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-13-2007 , 07:55   Re: users close to reigion?
Reply With Quote #5

lawl take a look in fakemeta functions...

Code:
register_forward(FM_TraceHull,...);
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 10-13-2007 , 15:33   Re: users close to reigion?
Reply With Quote #6

dam but what dose hull return?
Quote:
trace_hull ( Float: origin[3] , hull, 0, 0 )
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-14-2007 , 04:35   Re: users close to reigion?
Reply With Quote #7

You can use this also
Code:
stock bool:Is_Hull_Vacant(const Float:Origin[3], Hull, id)
{
 new tr;
 engfunc(EngFunc_TraceHull, Origin, Origin, 0, Hull, id, tr);
 if(!get_tr2(tr, TR_StartSolid) || !get_tr2(tr, TR_AllSolid))
  return true;
 
 return false;
}
Note: "Hull = pev(index, pev_flags) & FL_DUCKING ? HULL_HEAD : HULL_HUMAN;"

if "Origin[3]" is vacant will return true, else false.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Old 10-14-2007, 10:06
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
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 16:14.


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