Liberty Unleashed
Scripting => Script Help => Topic started by: [$DaNi3l$] on March 29, 2013, 05:16:53 pm
-
Any one can give me animation script? I want, send me link download! :-X
-
We are not here to give away, please try out yourself and post here your code if you fail.
Use LU Wiki (http://liberty-unleashed.co.uk/LUWiki/Main_Page) for what functions/events you can use.
-
gimme link becouse i cant make it ma self D:
-
Try it! Then you won't need to ask for anymore help because you will become experienced, also, learning didn't kill anyone so far.
-
As I understood you want to / anim (id)
function onPlayerCommand( pPlayer, szCommand, szText )
{
if ( szCommand == "anim" )
{
if ( szText )
{
local pTemp = split( szText, " " ), ID = 89;
if ( IsNum( pTemp[ 0 ] ) ) ID = pTemp[ 0 ].tointeger();
if ( (ID == 1) )
{
MessagePlayer( "[#ff0000]*Error*[#ffff00] - Este anim Esta Baneado Del Server", pPlayer, 255, 0, 0 );
}
else if ( ( ID >= 2 ) && ( ID <= 89 ) )
{
pPlayer.SetAnim( szText.tointeger() );
MessagePlayer( "**Su Animacion ha sido activada** ", pPlayer, Colour( 0, 255, 0 ) );
}
}
}
}
function GetPlayer( target )
{
target = target.tostring();
if ( IsNum( target ) )
{
target = target.tointeger();
if ( FindPlayer( target ) ) return FindPlayer( target );
else return null;
}
else if ( FindPlayer( target ) ) return FindPlayer( target );
else return null;
}