yar i use animation but i think if there no animation it will be batter to use in fast way
pawn Код:
if (strcmp("/plantautoc4", cmdtext, true, 10) == 0)
{
GetPlayerPos(playerid,X,Y,Z);
bomb1 = CreatePickup(1252,23,X,Y,Z,-1,-1);
bombs[playerid]++;
SendClientMessage(playerid,0xFFFFFFFF,"You planted the C4 BOMB. Run out of there!");
SendClientMessage(playerid, 0xFFFFFFFF, "You selected auto detonate C4 BOMB. It will explode in 5 SECOUNDS!");
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 0, 0, 0, 0);
SetTimer("bombplant",1500,false);
SetTimer("bombexplode",7000,false);
}
add
pawn Код:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 0, 0, 0, 0);
to have Animation plant c4
with Animation (i change to 7 seconds and 1.5 second plant bomb and after plant bomb it will auto bomb in 7 seconds