29.05.2018, 02:48
faz um sistema de login e registro por dof2 e usa os salvamentos :v
isso aki:
e quando o player desconectar do servidor
tipo:
to com preguiзa de formatar o file '-' vlw flw ;-;
PHP код:
Profissao[playerid] = DOF2_GetInt(file, "Profissao");
PHP код:
DOF2_SetInt(file, "Profissao", Profissao[playerid]);
tipo:
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
if(DOF2_FileExists(file))
{
DOF2_CreateFile(file);
DOF2_SetInt(file, "Profissao", Profissao[playerid]);
DOF2_SaveFile();
}
return 1;
}