How to create commands for save the stats?
#9

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)