From 7b9055470913876277d9a90f99322f38be295d55 Mon Sep 17 00:00:00 2001 From: omatt Date: Fri, 12 Aug 2016 21:27:36 +0200 Subject: we can only savepoint every 5 seconds now --- npc/functions/savepoint.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc') diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt index 26272616..0b545c00 100644 --- a/npc/functions/savepoint.txt +++ b/npc/functions/savepoint.txt @@ -16,6 +16,10 @@ // getarg(3) INN flag. function script savepointparticle { + + if (gettimetick(2) - @lastSave < 5) + return; + .@mapname$ = getarg(0, ""); .@mapx = getarg(1, -1); .@mapy = getarg(2, -1); @@ -38,5 +42,7 @@ function script savepointparticle { } savepoint .@mapname$, .@mapx, .@mapy; misceffect 4, getcharid(3); + @lastSave = gettimetick(2); + return; } -- cgit v1.2.3-70-g09d2