Quote:
Originally Posted by MasonSFW
pawn Код:
forward RemoveObjects();
new object;
CMD:lol(playerid, paramas[]) { new Float:x, Float:y, Float:z, Float:a; GetPlayerFacingAngle(playerid, a); GetPlayerPos(playerid, x, y, z); object = CreateObject(3409, x, y, z - 1.3, 0.0, 0.0, a + 90); SetTimer("RemoveObjects", 5000, true); return 1; }
public RemoveObjects() { // If player touch object DestroyObject(object); return 1; }
|
But it destroy the object when timer ends, but i want when player touch object