23.02.2015, 08:12
Animations doesn't work
Код:
forward DelayedAnthrax(playerid);
public DelayedAnthrax(playerid)
{
SetWeather(68);
SetWorldTime(7);
AnthraxActivated = 1;
AnthraxIssuer = playerid;
SendClientMessageToAll(COLOR_MAROON,"[ANTHRAX] Anthrax bomb has been launched all over San Andreas.");
if(PInfo[playerid][NoDamage] == 1) return 1;
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(PInfo[i][God] == 1 || PInfo[i][pAdminDuty] == 1 || PInfo[i][ASP] == 1 || PInfo[i][NoDamage] == 1)
return 1;
GameTextForPlayer(i, "~r~ANTRHAXED!",2000,3);
SetPlayerDrunkLevel(i,2000);
ApplyAnimation(i,"GRAFFITI","graffiti_Chkout",4.1,1,1,1,1,1,5);
ApplyAnimation(i,"GRAFFITI","graffiti_Chkout",4.1,1,1,1,1,1,5);
GetPlayerHealth(i,health);
SetPlayerHealth(i,health -90.0);
SendClientMessage(i,COLOR_RED,"You got affected by the anthrax bomb,you will feel dizzy for few seconds.");
}
return 1;
}

