PDA

View Full Version : [FilterScript] [FS] Save Commands


MaTrIx4057
10/01/2008, 03:23 PM
Save Commands

Commands -
/savepos - Almost like default /save but its AddPlayerClassEx and CreateVehicle.
/saveexp - Converts to CreateExplosion.
/savepic - Converts to CreatePickup.
Everything saves into positions.txt in scriptfiles.
More info you can get in readme file.

Thanks to Y_Less helping me with /savepos.

Download (http://up.delux-host.com/1200149563/)

There will be a huge update soon. Because i don't have much time now to add it. Its still bugged (the update that will come).
Have fun

Report bugs if find any.

Lewwy
10/01/2008, 03:31 PM
Omg i just tested it and its hella of a good script

Very VERY nice job!

MaTrIx4057
10/01/2008, 03:31 PM
Thanks for nice comments :)

Antironix
10/01/2008, 03:42 PM
will this script replace each line of will it add each time another line?

MaTrIx4057
10/01/2008, 03:43 PM
It will add another line 8)

Snickers
10/01/2008, 03:47 PM
MaTrIx4057 ]
It will add another line 8)

Nice

MaTrIx4057
10/01/2008, 03:51 PM
Everyone can post ideas. Im thinking of making new functions instead of AddPlayerClass(Ex) something like AddPlayer and AddVehicle with some variables.
And ofcourse possibly to convert.

kc
10/01/2008, 07:41 PM
nice :)

MaTrIx4057
10/01/2008, 07:42 PM
Thanks :D

SinisterCrime-
10/01/2008, 07:51 PM
Ooooo Another nice script ;)

People are getting better :P

Grove
10/01/2008, 08:06 PM
Under the /savepic command You have sent a Message if the Players State is not on foot saying "You cant save explosions blabla" When the message should be for pickups. :P

Also, Instead of checking through every state, Why didn't you just check if the player was not on foot and return false?

if(!GetPlayerState(playerid == 1)) return SendClientMessage(playerid,color,"You cant do this because you are not on foot!");

Would have been easier.

Somthing needs to be added to check if the file exists aswell, Although you have included the scriptfile, some people may delete by mistake, in which can cause the server to crash.

You also could have written a Handler too log the saved Positions/Explosions/Pickups into one function, Instead of doing basically the same thing with every command, would have made it much shorter :)

Overall, Good work :)

MaTrIx4057
10/01/2008, 08:08 PM
Easier? This is easy too. Maybe its hard for you. But anyway thanks for comments. And with states everything is fine i don't see bugs.

Numas
10/01/2008, 08:09 PM
Nice script. Comes in handy for getting things done faster :)

Grove
10/01/2008, 08:14 PM
MaTrIx4057 ]
Easier? This is easy too. Maybe its hard for you. But anyway thanks for comments. And with states everything is fine i don't see bugs.


No what I mean is, Instead of checking through every state, it would have been quicker to just check if the player is not on foot :P

Dont really matter anyway I suppose, but what I mean with the "bug" is this:

When you do the command, /savepic, If you are not on foot (e.g in a Vehicle, Wasted, spectating, etc) The message will send, saying "Sorry you can't save explosion when you are passenger!"

This command is for the pickups, not the explosion :lol:

MaTrIx4057
10/01/2008, 08:21 PM
MaTrIx4057 ]
Easier? This is easy too. Maybe its hard for you. But anyway thanks for comments. And with states everything is fine i don't see bugs.


No what I mean is, Instead of checking through every state, it would have been quicker to just check if the player is not on foot :P

Dont really matter anyway I suppose, but what I mean with the "bug" is this:

When you do the command, /savepic, If you are not on foot (e.g in a Vehicle, Wasted, spectating, etc) The message will send, saying "Sorry you can't save explosion when you are passenger!"

This command is for the pickups, not the explosion :lol:


Opps... Will rename it :D I will upload script when i make an update.

MaTrIx4057
11/01/2008, 07:45 PM
Ok you may think why i'm not making update. I hope it will be tomorrow because i will work tomorrow on a new system. Now i can't make it because its late here and i'm tired. Updates that will come.

AddVehicle, Added but still bugged
AddPlayer, Added but still bugged
SetPlayerCheckpoint,
/vehicle and maybe /vsel,
/skin,
AddStaticVehicle, Added
AddStaticVehicleEx, Added
AddPlayerClass, Added
/teleport. When you type it, it will make a teleport command in .txt file. It will support cmd and dcmd.
And lot of more.

Snickers
11/01/2008, 08:30 PM
MaTrIx4057 ]
Ok you may think why i'm not making update. I hope it will be tomorrow because i will work tomorrow on a new system. Now i can't make it because its late here and i'm tired. Updates that will come.

AddVehicle,
AddPlayer,
SetPlayerCheckpoint,
/vehicle and maybe /vsel,
/skin,
AddStaticVehicle,
AddStaticVehicleEx,
/teleport. When you type it, it will make a teleport command in .txt file. It will support cmd and dcmd.
And lot of more.


Awesome and very handy.
I need something like that.

MaTrIx4057
12/01/2008, 02:45 PM
UPDATE 12/01/2008

Added New things to script. You can read it in readme file. Sorry for not adding all things that though i will add today. Those things have some bugs and i will fix them as soon as i have time. Have Fun scripting.

http://up.delux-host.com/1200149563/

MaTrIx4057
12/01/2008, 02:52 PM
Delete this please!!! I posted wrong.

MaTrIx4057
12/01/2008, 03:53 PM
I didn't added it because i can't fix 1 bug!! But you will see it in next release and i don't allow you to post here anymore.

abineri
18/03/2010, 04:00 PM
Thanks for this i cant seem to get debug mode to work