Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: [VM_U]Spectra.PhantoM^ on Feb 13, 2016, 11:41 AM

Title: help in cmd
Post by: [VM_U]Spectra.PhantoM^ on Feb 13, 2016, 11:41 AM
else if (cmd == "burn")
{
player.IsOnFire = true;
}
it gives error idk why.
Title: Re: help in cmd
Post by: DizzasTeR on Feb 13, 2016, 11:45 AM
IsOnFire is not used to set a player on fire instead it tells if a player is on fire.
Title: Re: help in cmd
Post by: [VM_U]Spectra.PhantoM^ on Feb 13, 2016, 11:46 AM
hopes ruined :( i thought it would do that anywayz thankx . can u give an example on how to use this function?
Title: Re: help in cmd
Post by: Anik on Feb 13, 2016, 11:50 AM
If you want to burn the player. Create an explosion/
Title: Re: help in cmd
Post by: [VM_U]Spectra.PhantoM^ on Feb 13, 2016, 11:51 AM
Quote from: [DS]Anik on Feb 13, 2016, 11:50 AMIf you want to burn the player. Create an explosion/
ik that but i want an example on how to use this IsOnFire.
Title: Re: help in cmd
Post by: Anik on Feb 13, 2016, 12:05 PM
else if ( cmd == "playeronfire" )
{
local plr = GetPlayer( text );
MessagePlayer(plr.IsOnFire+"",player);
}
If you are on fire it will return true. And if u r not it will return false