[FilterScript] [USEFULL] Weapon Saving/Loading + AutoSave
#1

Really simple, but pretty usefull.
Anyway, here it is.
It saves weapons using dini so u must have the dini.inc

http://pastebin.com/TaD5miwQ

It autosaves every 3 seconds,
The saving is starting AFTER player spawn cause otherwise it would save it when the player has no weapons,

make a folder called weapons in ur scriptfiles
Reply
#2

Comments?
Reply
#3

AWESOME!! Nice work!
Reply
#4

Cool
Reply
#5

Thanks
Reply
#6

So this will save your weapons every 2 seconds NON STOP. Even if player disconnects, the timer will still run. In my opinion, this would cause lag for servers with more than 20 players or so...
Reply
#7

Quote:
Originally Posted by Universal
View Post
So this will save your weapons every 2 seconds NON STOP. Even if player disconnects, the timer will still run. In my opinion, this would cause lag for servers with more than 20 players or so...
no, It does not run if the player disconnects, And I am using it for 50 players and its not lagging at all.
I don't use it as a FS tough, have it implemented in my saving system.
Reply
#8

Quote:
Originally Posted by milanosie
View Post
no, It does not run if the player disconnects, And I am using it for 50 players and its not lagging at all.
I don't use it as a FS tough, have it implemented in my saving system.
It does, because you are not checking wether the player is connected or not in the public, and you're not killing the timer after player disconnects.
Basically, it just keeps running all the time until you shut down your server.
Reply
#9

it gives me Error 100:fatal error 100: cannot read from file: "dudb"

help?
Reply
#10

Quote:
Originally Posted by BoyDenker
View Post
it gives me Error 100:fatal error 100: cannot read from file: "dudb"

help?
Download this and put it in your PAWNO's includes foulder.
Reply
#11

Nice Work Thanks
Reply
#12

maybe with djson will be better no ?
Reply
#13

Thx so much, i added it on my server. I will test and the rep you if works.
Reply
#14

To avoid Lagging with that timer! What About saving weapons at death and giving them at spawn. that's what i'm doing in my server
Reply
#15

It's possible to make the same script, but in mysql? Im trying but I didn't have success
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)