Liberty Unleashed
Scripting => Script Help => Topic started by: Maximom on June 04, 2013, 04:34:54 pm
-
hi when i shot players arm its falled how i can do that? help ?
-
hi when i shot players arm its falled how i can do that? help ?
What do you mean by "its falled"?
-
SugarD, I think he meant ' it falls ', anyway, you will have to use the .RemoveLimb function.
-
i cant find .removelimb function
-
See There ARE Left Arm And Right Arm
if left arm here is its script
g_LocalPlayer <- FindLocalPlayer();
function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM );
g_LocalPlayer.Health = 1;
}
return 1;
}
function onClientKill( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~LEFTARMSHOT", 3000, 3 );
}
return 1;
}
function onClientDeath( pKiller, iWeapon, iBodypart )
{
if ( pKiller )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~LEFTARMSHOT", 3000, 3 );
}
}
return 1;
}
if right arm
g_LocalPlayer <- FindLocalPlayer();
function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM );
g_LocalPlayer.Health = 1;
}
return 1;
}
function onClientKill( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~RIGHTARMSHOT", 3000, 3 );
}
return 1;
}
function onClientDeath( pKiller, iWeapon, iBodypart )
{
if ( pKiller )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
BigMessage( "~r~RIGHTARMSHOT", 3000, 3 );
}
}
return 1;
}
this is most likely to be as headshot.......
if you want it only falls without die
then this for left
g_LocalPlayer <- FindLocalPlayer();
function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_LEFTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM );
}
return 1;
}
and this for right
g_LocalPlayer <- FindLocalPlayer();
function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( ( iBodypart == BODYPART_RIGHTARM ) && ( iWeapon > 3 ) )
{
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM );
}
return 1;
}
sorry for my bad english....
-
Man Try This >> 8)
g_LocalPlayer <- FindLocalPlayer();
function onClientShot( pPlayer, iWeapon, iBodypart )
{
if ( g_LocalPlayer.Immune == false )
{
g_LocalPlayer.RemoveLimb( BODYPART_LEFTARM );
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTARM );
g_LocalPlayer.RemoveLimb( BODYPART_LEFTLEG );
g_LocalPlayer.RemoveLimb( BODYPART_RIGHTLEG );
}
return 1;
}
You Can make g_LocalPlayer.Immune == false True.
-
thank you all