Change Running Style
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Actually he can with a loop.
Define a variable and in the command /givemespeed set the variable to 1;
Example:
pawn Код:
new CJ_Speed[ MAX_PLAYERS ];
pawn Код:
public OnGameModeInit( )
{
    for( new i = 0; i < MAX_PLAYERS; i ++ )
    {
        if( CJ_Speed[ i ] == 1 ) UsePlayerPedAnims( );
    }
    return 1;
}
pawn Код:
public OnPlayerConnect( playerid )
{
    CJ_Speed[ playerid ] = 0;
    return 1;
}
pawn Код:
CMD:givemespeed( playerid, params[ ] )
{
    CJ_Speed[ playerid ] = 1;
    return 1;
}


mp2 said that you can't set it for a single player and that's right. use animations to change the walk style.
Reply


Messages In This Thread
Change Running Style - by LasTDarK - 21.02.2012, 16:23
Re: Change Running Style - by emokidx - 21.02.2012, 16:25
Re: Change Running Style - by MP2 - 21.02.2012, 16:26
Re: Change Running Style - by Konstantinos - 21.02.2012, 16:34
Re: Change Running Style - by LasTDarK - 22.02.2012, 12:49
Re: Change Running Style - by Konstantinos - 22.02.2012, 14:07
Re : Change Running Style - by luopifr - 18.11.2013, 10:48
Re: Change Running Style - by fordawinzz - 18.11.2013, 13:06

Forum Jump:


Users browsing this thread: 4 Guest(s)