07.01.2015, 17:45
Quote:
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) |
I don't understand to fully, so could you show a small example?
Or the bool thing would be eaiser I think. Can somone show a example on some of them?..
Thanks and sorry for bump.