Automatically saveaccounts when GMX
#1

Hello.

I could use some help:

How can I script a command so it automatically does /saveaccounts when I make a /gmx ?

Corran
Reply
#2

Quote:
Originally Posted by Adenx
View Post
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
Reply
#3

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;
}
Reply
#4

Is this supposed to work just like you posted it?
Reply
#5

Quote:
Originally Posted by Adenx
View Post
Is this supposed to work just like you posted it?
As long as you edit it with your saving code.
Reply
#6

I'm not a good scripter, where would I have to do that? :O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)