[Ajuda] Sistema de VIP
#5

PHP код:
stock GetName(playerid)
{
        static 
name[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnamesizeof(name));
        return 
name;
}

stock PegarConta(playerid)
{
        static 
arquivo[30];
        
format(arquivosizeof(arquivo), "Vips/%s.sav"GetName(playerid));
        return 
arquivo;
}

stock SalvarConta(playerid)
{
        
DOF2_SetInt(PegarConta(playerid), "VIP"pVip[playerid][Vip]);
        
DOF2_SaveFile();
}

stock CarregarConta(playerid)
{
        if(
DOF2_FileExists(PegarConta(playerid)))
        {
                
pVip[playerid][Vip] = DOF2_GetInt(PegarConta(playerid), "VIP");
        }

Reply


Messages In This Thread
Sistema de VIP - by viniciussvl - 13.01.2016, 02:24
Re: Sistema de VIP - by Vegassilva - 13.01.2016, 10:57
Re: Sistema de VIP - by Vegassilva - 13.01.2016, 11:00
Re: Sistema de VIP - by viniciussvl - 13.01.2016, 13:00
Re: Sistema de VIP - by Coringa_Vilao - 13.01.2016, 13:11
Re: Sistema de VIP - by viniciussvl - 13.01.2016, 13:13
Re: Sistema de VIP - by Coringa_Vilao - 13.01.2016, 13:16
Re: Sistema de VIP - by Coringa_Vilao - 13.01.2016, 13:20
Re: Sistema de VIP - by viniciussvl - 13.01.2016, 13:20
Re: Sistema de VIP - by viniciussvl - 13.01.2016, 13:23

Forum Jump:


Users browsing this thread: 9 Guest(s)