03.01.2015, 23:32
The command to create a mine will have to set a connected property (as a variable) to false so that it won't blow up. You can then have it set to true after 2 seconds (using SetTimerEx), giving the player 2 seconds to move away.
Alternatively, store the name of the player who created the mine and store the time it was created using time(). When it detonated, compare for the player using strcmp and see how long it has been since creation using time() - MineInfo[mineid][timeCreated] (if it is 2000 or greater, then detonate)
Alternatively, store the name of the player who created the mine and store the time it was created using time(). When it detonated, compare for the player using strcmp and see how long it has been since creation using time() - MineInfo[mineid][timeCreated] (if it is 2000 or greater, then detonate)