Ко всем форвардам добавляем:
Код: Выделить всё
forward Parashut();
ко всем таймерам в public OnGameModeInit()
Код: Выделить всё
SetTimer("Parashut",500,true);
ко всем public
Код: Выделить всё
public Parashut()
{
for(new playerid = 0;playerid<MAX_PLAYERS;playerid++)
{
if(IsApplyAnimation(playerid, "FALL_fall"))
{
GivePlayerWeapon(playerid,46,1);
}
}
return true;
}
stock IsApplyAnimation(playerid, animation[])
{
new bool:IsApply;
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32], animname[32];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
if(!strcmp(animname, animation, true)) IsApply=true;
else IsApply=false;
}
return IsApply;
}
Готово.