Scripting/Squirrel/Functions/Player.IsOnFire: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
No edit summary
Line 22: Line 22:
}
}
</source>
</source>
By Anik

Revision as of 15:34, 26 January 2017

This function Returns if the Player Is On Fire or Not.

Syntax

player.IsOnFire

Arguements

N/A

Return value

  • bool toggled - true or false

Example

function onPlayerCommand( player, cmd, text )
{
if ( cmd == "playeronfire" )
{
local plr = FindPlayer( text );
MessagePlayer(plr.IsOnFire+"",player);
}
}