[Help] CJ Run
#6

Quote:
Originally Posted by BlackSA
Посмотреть сообщение
It's not working, as I guess.
I don't know how to place animation for the player that he will be able to run like CJ,
I've tried to do it with ApplyAnimation, it was unsuccessfull.
There isn't animation for applying CJ's running/walking.
Of course, it was unsuccessfull because it's never used like that.
Are you sure, did you had the commands too and enable it for you by /run id.
Also, forgot to add the sscanf
pawn Код:
// Replace the commands To:
CMD:run( playerid, params[ ] )
{
    new
        id;

    if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You are not Admin!" );
    if( sscanf( params, "r", id ) ) return SendClientMessage( playerid, -1, "Usage: /run <ID/Part Of Name>" );
    CJ_RUN[ id ] = 1;
    return 1;
}
CMD:disablerun( playerid, params[ ] )
{
    new
        id;

    if( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, -1, "You are not Admin!" );
    if( sscanf( params, "r", id ) ) return SendClientMessage( playerid, -1, "Usage: /run <ID/Part Of Name>" );
    CJ_RUN[ id ] = 0;
    return 1;
}
Quote:
Originally Posted by henry jiggy
Посмотреть сообщение
EnablePlayerPedAnims() is used to enable it for all of them(i u dont use it it will remain disabled). never heard of any function that adds it only to 1 player...
There is function that placed only OnGameModeInit( ) Callback
pawn Код:
public OnGameModeInit( )
{
    UsePlayerPedAnims( );
    return 1;
}
Uses standard player walking animation (animation of CJ).
Reply


Messages In This Thread
[Help] CJ Run - by BlackSA - 24.01.2012, 16:51
Re: [Help] CJ Run - by Konstantinos - 24.01.2012, 17:02
Re: [Help] CJ Run - by vassilis - 24.01.2012, 17:04
Re: [Help] CJ Run - by BlackSA - 24.01.2012, 17:09
Re: [Help] CJ Run - by henry jiggy - 24.01.2012, 17:56
Re: [Help] CJ Run - by Konstantinos - 24.01.2012, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)