27.02.2014, 04:53
Well, if you are using Dini or Djson or userfiles like that; you don't have to make an userfile persй. For example, if your variable is RegisteredPlayers;
Something like that. Just save that variable into a file. And off course, load it when the server is loading
pawn Код:
OnPlayerRegister() //Off course, when a player is registered. Doesn't actually exist (standard)
{
new str[45];
RegisteredPlayers++;
djSetInt("ServerFile.ini", RegisteredPlayers, RegisteredPlayers); //or dini_IntSet etc.
format(str, 45, "There are now %d registered users!", RegisteredPlayers);
SendClientMessageToAll(0xFFFFFFAA, str);
}