Detect People close to a tear gas - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detect People close to a tear gas (
/showthread.php?tid=73132)
Detect People close to a tear gas -
Trooper[Y] - 12.04.2009
How can i detect Players close to an "expldoing" tear gas (ID 17) and run a timer for them ?
As
Код:
If PlayerToPos(grenadkoords)
{
SetTimerEx("func",otherparams)
}
Re: Detect People close to a tear gas -
Backwardsman97 - 12.04.2009
You can't unless it's a scripted tear gas.
Re: Detect People close to a tear gas -
bogeymanEST - 13.04.2009
You could get the average distance the player throws a can of teargas and use GetXYInFrontOfPlayer+PlayerToPos.