Quote//Quote from stormeus, to block FPV in scripts.:
function onPlayerActionChange(player, oldAction, newAction)
{
if (newAction == 12 && (player.Weapon == 26 || player.Weapon == 27 || player.Weapon == 32))
{
//do sth here.
}
}
I Mean what sth I need to do? please help :C
Just now I found a way
function onPlayerActionChange(p, oldAction, newAction)
{
if (newAction == 12 && (player.Weapon == 26 || player.Weapon == 27 || player.Weapon == 32))
{
p.IsFrozen = true; p.IsFrozen = false;
}
}
Any other better solution ? :P
function onPlayerActionChange(p, oldAction, newAction)
{
if (newAction == 12 && (player.Weapon == 26 || player.Weapon == 27 || player.Weapon == 32))
{
p.SetWeapon(0,0)
}
}
Quote from: Xmair on Dec 05, 2015, 12:48 PMfunction onPlayerActionChange(p, oldAction, newAction)
{
if (newAction == 12 && (player.Weapon == 26 || player.Weapon == 27 || player.Weapon == 32))
{
p.SetWeapon(0,0)
}
}
It is actually useful, but I just don't want to disarm players in fpv.edit: ah thanks, I forgot it won't disarm :d
problem solved.