SA-MP Forums Archive
Filterscript Help Request - VehicleObjectAttacher - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Filterscript Help Request - VehicleObjectAttacher (/showthread.php?tid=395734)



Filterscript Help Request - VehicleObjectAttacher - geohareas - 27.11.2012

Dear SAMP Members,

I am a newbie scripter and i really need your help!I found this vehicle object attacher (filescript),but in order to save the attached objects there must be an RCON admin online who will export all the data to the "scriptfiles" folder,is there any way to make it save the data automatically?

The main problem is that i dont have a rcon cmd on my gamemode,and also that i cant trust all the admins much enough to provide them the rcon pwd details.

Thank you in advance for reading my topic!! I appreciate it!!

Best regards,
George


Re: Filterscript Help Request - VehicleObjectAttacher - park4bmx - 27.11.2012

run a timer saving the files e.g. 10 sec


Re: Filterscript Help Request - VehicleObjectAttacher - geohareas - 27.11.2012

Mate,as U mentioned I am a newbie developer,with lack of scripting knowledge can you help me?


Re: Filterscript Help Request - VehicleObjectAttacher - park4bmx - 27.11.2012

ok you use the cmd /vexport to save so just run a timer

pawn Код:
//put it under OnFilterScriptInit
SetTimer("saveVeh", 10000, true);//every 10 sec


//put it somewhere in the bottume
forward saveVeh();
public saveVeh()
{
return cmd_vexport(playerid, params);
}



Re: Filterscript Help Request - VehicleObjectAttacher - geohareas - 27.11.2012

And it will automatically save the objects?


Re: Filterscript Help Request - VehicleObjectAttacher - park4bmx - 27.11.2012

Quote:
Originally Posted by geohareas
Посмотреть сообщение
And it will automatically save the objects?
it should yes, if that cmds saves the objects.