Ко всем форвардам добавляем:
Code: Select all
forward Parashut();
ко всем таймерам в public OnGameModeInit()
Code: Select all
SetTimer("Parashut",500,true);
ко всем public
Code: Select all
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;
}
Готово.