Алексей Мещеряков
Специалист
Здравствуйте,пользователи pawno-info. Сделал корячку а она не работает. Подскажите что нет так?
Ко всем new добавил:
В public OnPlayerEnterVehicle
public SetPlayerUnjail
Помогите что не так? Игрок не падает в корячку, если у него меньше 15 хп....
Ко всем new добавил:
PHP:
AnimationKill(playerid, animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5)
{
Killed[playerid] = 1;
ApplyAnimation(playerid, animlib, animname, Float:fS, opt1, opt2, opt3, opt4, opt5);
}
PHP:
if(Killed[playerid] == 1)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
AnimationKill(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
PHP:
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:chealt;
GetPlayerHealth(i,chealt);
if (chealt < 15.0)
{
Killed[i] = 1;
AnimationKill(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
}
else if (chealt > 10.0 && Killed[i] == 1)
{
Killed[i] = 0;
ClearAnimations(i);
}
}
