24.11.2017, 18:10
PHP код:
#include "DOF2"
new GetarIdServer;
enum jogador {
ID
}
new Player[MAX_PLAYERS][jogador];
QuandoPlayerClicarEmRegistrar()
{
GetarIdServer ++;
Player[playerid][ID] = GetarIdServer;
new string[20];
format(string, sizeof(string), "LUGAR/SCRIPTFILES", "Nome");
DOF2::CreateFile(string);
DOF2::SetInt(string, "IdsCriados", GetarIdServer);
DOF2::SaveFile();
}
OnGameModeInit()
{
new string[20];
format(string, sizeof(string), "LUGAR/SCRIPTFILES", "Nome");
if(DOF2_FileExists(string))
{
GetarIdServer = DOF2::GetInt(string, "IdsCriados");
}
}