22.08.2014, 19:30
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInDynamicCP(playerid, PlantbombCP) && (gTeam[playerid] == TERRORIST && (BombPlanted == INVALID_PLAYER_ID)))
{
Bomb = CreateObject(3786,259.2780,1855.8953,8.7578,196.8689,0,0, 100.0);
BombExplodeTimer = SetTimer("BombExplodes",170*1000,0);
ExplodeBombTimer = 0;
Defuse[0] = SetTimer("Defusing1", 160*1000, 0);
Defuse[1] =1;
GameTextForAll("~r~Terrorists planted a bomb in ~b~Army base~n~~g~army try to defuse it~n~ ~r~stand in checkpoint for 30 seconds to defuse it!", 3000, 3);
BombPlanted = playerid;
}
else if(IsPlayerInDynamicCP(playerid, PlantbombCP) && (gTeam[playerid] == TERRORIST && (BombPlanted != INVALID_PLAYER_ID))) return SendClientMessage(playerid, COLOR_RED, "The bomb is already planted!");
}