GeroinFest
Дебютант
Ищем паблик:
И пишем туда:
Далее идём в конец мода и пишем:
+сик есле не жалко)
PHP:
public OnGameModeInit
PHP:
SetTimer("Padaet",500,true);
PHP:
forward Padaet();
public Padaet()
{
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(IsApplyAnimation(i, "FALL_fall"))
{
SendClientMessage(i, 0xFFFFFFFF, "Сервер:Держи парашут");
GivePlayerWeapon(i,46,1);
}
}
return 1;
}
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;
}
