Automatically saveaccounts when GMX - 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: Automatically saveaccounts when GMX (
/showthread.php?tid=282258)
Automatically saveaccounts when GMX -
Adenx - 10.09.2011
Hello.
I could use some help:
How can I script a command so it automatically does /saveaccounts when I make a /gmx ?
Corran
Re: Automatically saveaccounts when GMX -
Horrible - 10.09.2011
Quote:
Originally Posted by Adenx
Hello.
I could use some help:
How can I script a command so it automatically does /saveaccounts when I make a /gmx ?
Corran
|
you must use INI or SQL
if you want to use INI i suggest you to use Y_INI or DOF2
Re: Automatically saveaccounts when GMX -
=WoR=Varth - 10.09.2011
Create a costum server restart command f.e:
pawn Code:
new bool:gmx;
CMD:restart(playerid,params[])
{
saveallaccount();
gmx++;
SendRConCommand("gmx");
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
if(gmx) return 1;
//saving thinghy
return 1;
}
AW: Automatically saveaccounts when GMX -
Adenx - 10.09.2011
Is this supposed to work just like you posted it?
Re: AW: Automatically saveaccounts when GMX -
=WoR=Varth - 10.09.2011
Quote:
Originally Posted by Adenx
Is this supposed to work just like you posted it?
|
As long as you edit it with your saving code.
AW: Automatically saveaccounts when GMX -
Adenx - 10.09.2011
I'm not a good scripter, where would I have to do that? :O