diff options
author | omatt <m.vuoso@laposte.net> | 2016-08-12 21:27:36 +0200 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2016-12-19 12:15:18 -0500 |
commit | 7b9055470913876277d9a90f99322f38be295d55 (patch) | |
tree | 74e12dfcb0e01d5dc96b0c4ca3c64d50e40a9e3c /npc | |
parent | 3c91fd5ec5ce804d13838a01b5a0025104ab42cd (diff) | |
download | serverdata-7b9055470913876277d9a90f99322f38be295d55.tar.gz serverdata-7b9055470913876277d9a90f99322f38be295d55.tar.bz2 serverdata-7b9055470913876277d9a90f99322f38be295d55.tar.xz serverdata-7b9055470913876277d9a90f99322f38be295d55.zip |
we can only savepoint every 5 seconds now
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/savepoint.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |