Raised This Month: $32 Target: $400
 8% 

How to play player's animation?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 03-22-2021 , 02:03   How to play player's animation?
Reply With Quote #1

As the title says and also give example.

Thanks.
__________________

Last edited by nG_getwreck; 03-22-2021 at 02:07.
nG_getwreck is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-22-2021 , 03:14   Re: How to play player's animation?
Reply With Quote #2

PHP Code:
set_pev(idpev_sequence, <player animation number you want to play>)

//ex: set_pev(id, pev_sequence, 111) 
__________________
My plugin:
Celena Luna is offline
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 03-22-2021 , 03:29   Re: How to play player's animation?
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
PHP Code:
set_pev(idpev_sequence, <player animation number you want to play>)

//ex: set_pev(id, pev_sequence, 111) 
Is this same like this one?
PHP Code:
stock UTIL_PlayerAnimation(idszAnimation[]) {
    static 
iAnimDesiredFloat:fFrameRateFloat:fGroundSpeedbool:bLoops;
    if((
iAnimDesired lookup_sequence(idszAnimationfFrameRatebLoopsfGroundSpeed)) == -1iAnimDesired 0;
    static 
Float:fGameTime;
    
fGameTime get_gametime();
    
set_pev(idpev_frame0.0);
    
set_pev(idpev_framerate1.0);
    
set_pev(idpev_animtimefGameTime);
    
set_pev(idpev_sequenceiAnimDesired);
    
set_pdata_int(id40bLoops4);
    
set_pdata_int(id3904);
    
set_pdata_float(id36fFrameRate4);
    
set_pdata_float(id37fGroundSpeed4);
    
set_pdata_float(id38fGameTime4);
    
set_pdata_int(id7328);
    
set_pdata_int(id7428);   
    
set_pdata_float(id220fGameTime);

__________________
nG_getwreck is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode