▲Denny▲
Умник
PHP:
if(checkpointid == avtojobchek[playerid][0])
{
DestroyDynamicCP(avtojobchek[playerid][0]);
ApplyAnimation(playerid, "MISC", "pickup_box",2.5, 0, 0, 0, 0, 0);
SetTimerEx("TextAnim", 4000, false, "i", playerid);
ApplyAnimation(playerid, "CARRY", "crry_prtial",0, 0, 0, 0, 0, 0);
AvtoObj[playerid] = CreateObject(1098, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(AvtoObj[playerid], playerid, 0.0, 0.8, 0.4, 2.5, 0.0, 0.0);
new i = random(3) + 1;
avtojobchek[playerid][1] = CreateDynamicCP(avtocheck[i][0], avtocheck[i][1], avtocheck[i][2], 1.0, -1, -1, playerid);
return 1;
}
TextAnim - паблик очистки анимации.
