[HELP] Creating a new command...
#10

Quote:
Originally Posted by Da' J'
View Post
Ok... We tested it with 2 people, and now it works for everyone. But one question - How the heck my character keeps doing the animation all the time? It spins like 2 times in a second.. I think it's because of this?
pawn Code:
HealthTimer = SetTimer("CheckHealth",500, true);
That's under OnGameModeInIt.
Have you checked your applyanimation parameters?
https://sampwiki.blast.hk/wiki/ApplyAnimation

And btw if you're missing still missing the /getup cmd
pawn Code:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    if( strcmp( cmdtext, "/getup", true, 6 ) == 0 ) {
        SetPlayerHealth(playerid, 25);
        ClearAnimations(playerid);
        TogglePlayerControllable(playerid,1);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] Creating a new command... [STILL NEED HELP] - by Da' J' - 19.01.2012, 16:41
Re: [HELP] Creating a new command... - by milanosie - 19.01.2012, 16:44
Re: [HELP] Creating a new command... - by Konstantinos - 19.01.2012, 16:55
Re: [HELP] Creating a new command... - by milanosie - 19.01.2012, 17:14
Re: [HELP] Creating a new command... - by Konstantinos - 19.01.2012, 17:26
Re: [HELP] Creating a new command... - by milanosie - 19.01.2012, 18:10
Re: [HELP] Creating a new command... - by Da' J' - 19.01.2012, 18:11
Re: [HELP] Creating a new command... - by mSp - 19.01.2012, 18:22
Re: [HELP] Creating a new command... - by Da' J' - 19.01.2012, 18:44
Re: [HELP] Creating a new command... - by mSp - 19.01.2012, 18:51

Forum Jump:


Users browsing this thread: 3 Guest(s)