stock SalvarVip(playerid)
{
if(PlayerVip[playerid] >= 1)
{
format(_sStr, 35, "Vips/%s.ini", pNome(playerid));
if(INI_Open(_sStr))// Abre o arquivo!
{
INI_WriteInt("NivelVip", PlayerVip[playerid]);
INI_Save();
INI_Close();
}
}
return 1;
}
stock CarregarVip(playerid)
{
format(_sStr, 35, "Vips/%s.ini", pNome(playerid));
if(INI_Open(_sStr))// Abre o arquivo!
{
PlayerVip[playerid] = INI_ReadInt("NivelVip");
INI_Close();
}
return 1;
}
Profissao[id] = ComandoVermelho;
stock SalvarVip(playerid) { if(PlayerVip[playerid] >= 1) { format(_sStr, 35, "Vips/%s.ini", pNome(playerid)); if(INI_Open(_sStr))// Abre o arquivo! { INI_WriteInt("NivelVip", PlayerVip[playerid]); INI_WriteInt("Profissao", Profissao[playerid]); INI_Save(); INI_Close(); } } return 1; } stock CarregarVip(playerid) { format(_sStr, 35, "Vips/%s.ini", pNome(playerid)); if(INI_Open(_sStr))// Abre o arquivo! { PlayerVip[playerid] = INI_ReadInt("NivelVip"); Profissao[playerid] = INI_ReadInt("Profissao"); INI_Close(); } return 1; } |