24.05.2010, 19:10
i have this for a checkpoint but i want to explode one not every time when i player is on the checkpoint. also need code for remove an object on a specific time. i mean when the player enter on the checkpoint need to stay enter for 30 sec and then remove the object. i know i ask too much.
Код:
public OnPlayerEnterCheckpoint(playerid) { if(GetDistanceToPoint(playerid,211.4478,1810.8826,21.8672)<=2)//the same X,Y,Z coords as the ones you put into the timer || the 2 should be your checkpoint radius { CreateExplosion(216.01878356934, 1875.0952148438, 13.938992500305, 2, 10.0); } return 1; }