04.06.2016, 20:37
(
Последний раз редактировалось Mijata; 04.06.2016 в 23:23.
)
fixed
CMD:bombplant(playerid, params[])
{
if(IsPlayerInDynamicCP(playerid, PlantbombCP) && (gTeam[playerid] == T1 && (BombPlanted == 0)))
{
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
Bomb = CreateDynamicObject(1654, 211.78671, 1824.10706, 6.43200, -87.00000, 0.00000, 0.00000);
BombExplodeTimer = SetTimerEx("BombExplodes", 110000, false, "i", playerid);
GameTextForAll("~r~Bomb Has Been Planted!", 4000, 3);
BombPlanted = 1;
}
else if(IsPlayerInDynamicCP(playerid, PlantbombCP) && (gTeam[playerid] == T1 && (BombPlanted != 0))) return SendClientMessage(playerid, COLOR_RED, "The bomb is already planted!");
return 1;
}