18.02.2011, 08:55
Quote:
Can you tell me the animlib[] and animname[] of the open parachute please
|
pawn Код:
new animlib[32],animname[32];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,sizeof(animlib),animname,sizeof(animname));
if(!strcmp(animlib,"PARACHUTE",true) && (!strcmp(animname,"PARA_decel",true) || !strcmp(animname,"PARA_float",true) || !strcmp(animname,"PARA_steerL",true) || !strcmp(animname,"PARA_steerR",true)))
{
// do smth
}
PARA_float - stay
PARA_steerL - rotate left
PARA_steerR - rotate right