Let's Walk!

Started by BigcaT_, Apr 19, 2015, 09:34 AM

Previous topic - Next topic

BigcaT_


stingray <- null;
walkingp <- array( GetMaxPlayers(), false );
else if (cmd == "walk")
{
if (text && IsNum(text))
{
if ( status[player.ID].walkingp == false )
{
stingray <- NewTimer("walking",500,1,player.ID,text.tointeger());
      status[player.ID].walkingp = true;
}
else MessagePlayer("You are walking.",player);
}
else MessagePlayer("/walk id",player);
}
    else if (cmd == "stopwalk")
{
stingray.Stop();
status[player.ID].walkingp = false;
}
function walking(p, text)
{
local player = FindPlayer(p);
player.SetAnim(text);
stingray <- NewTimer("walking",100,1,p,text);
}

To walk, type /walk 0.
to run, type /walk 1.
I know this is very laggggg!
but it's really cool and useful for film.

Thijn

That will spawn another timer every time someone else uses it. Please, test your snippets with multiple people before releasing it.

Finch

BigCat i check it out it cool
But its Lag
Beztone is a scripter but he is too stupid