How to create commands for save the stats?
#10

Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by Anthony_Brassi
this is mine

pawn Код:
if(strcmp(cmd, "/savechars", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 4)
        {
            SaveAccounts();
            SendClientMessage(playerid, COLOR_YELLOW, "All player accounts updated successfully.");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command !");
        }
 return 1;
     }



Gonna be useless to him as you didnt post SaveAccounts() callback :P
But as Etch said you dont need a command, Just make them save on player disconnect
Eh, you're right.....lol im a dummy xD
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)