Fire anim disabling - 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)
+--- Thread: Fire anim disabling (
/showthread.php?tid=579964)
Fire anim disabling -
fuckingcruse - 01.07.2015
Anyone could say me how can I detect if a player is on fire? My server got an event where players cross fire they use anim to avoid buring and dying , so amy way to detect fire?
Re: Fire anim disabling -
MasonSFW - 01.07.2015
Example:
pawn Код:
new FireObject;
FireObject = CreateObject(...);
if(IsPlayerNearObject(playerid, FireObject , PUT YOUR RANGE HERE))
{
//Here put anything you want to do
return 1;
}
stock IsPlayerNearObject(playerid, objectid, Float:range)
{
new Float:X, Float:Y, Float:Z;
GetDynamicObjectPos(objectid, X, Y, Z);
return (IsPlayerInRangeOfPoint(playerid, range, X, Y, Z));
}
Re: Fire anim disabling -
Sellize - 01.07.2015
https://sampforum.blast.hk/showthread.php?tid=490436
Emmet's include has a callback
PHP код:
forward OnPlayerBurning(playerid, status);