17/01/2023 20:48
como eu posso salvar um banimento de um play igual a esses modelo
tipo ficari como aq nas ???
DOF2::SetString(Account(playerid), "BAN", ???(playerid));
ja tentei de varias formas mas como sou noob ainda nao sei como coloca a parte do ban sabendo eu dessa paerte o resto eu me viro kkkkk por favor helpme
stock SaveAccount(playerid)
{
if(DOF2::FileExists(Account(playerid)) && Player[playerid][Logado])
{
DOF2::SetString(Account(playerid), "IP", GetPlayerIpf(playerid));
DOF2::SetInt(Account(playerid), "Dinheiro", GetPlayerMoney(playerid));
DOF2::SetInt(Account(playerid), "Level", GetPlayerScore(playerid));
DOF2::SetInt(Account(playerid), "Interior", GetPlayerInterior(playerid));
DOF2::SetInt(Account(playerid), "VirtualWorld", GetPlayerVirtualWorld(playerid));
DOF2::SetInt(Account(playerid), "Estrelas", GetPlayerWantedLevel(playerid));
DOF2::SetInt(Account(playerid), "Admin", Player[playerid][Admin]);
DOF2::SetInt(Account(playerid), "Weapon", GetPlayerWeapon(playerid));
DOF2::SaveFile();
ResetAccount(playerid);
}
return 1;
}
tipo ficari como aq nas ???
DOF2::SetString(Account(playerid), "BAN", ???(playerid));
ja tentei de varias formas mas como sou noob ainda nao sei como coloca a parte do ban sabendo eu dessa paerte o resto eu me viro kkkkk por favor helpme
stock SaveAccount(playerid)
{
if(DOF2::FileExists(Account(playerid)) && Player[playerid][Logado])
{
DOF2::SetString(Account(playerid), "IP", GetPlayerIpf(playerid));
DOF2::SetInt(Account(playerid), "Dinheiro", GetPlayerMoney(playerid));
DOF2::SetInt(Account(playerid), "Level", GetPlayerScore(playerid));
DOF2::SetInt(Account(playerid), "Interior", GetPlayerInterior(playerid));
DOF2::SetInt(Account(playerid), "VirtualWorld", GetPlayerVirtualWorld(playerid));
DOF2::SetInt(Account(playerid), "Estrelas", GetPlayerWantedLevel(playerid));
DOF2::SetInt(Account(playerid), "Admin", Player[playerid][Admin]);
DOF2::SetInt(Account(playerid), "Weapon", GetPlayerWeapon(playerid));
DOF2::SaveFile();
ResetAccount(playerid);
}
return 1;
}