Saving Money
#7

pawn Код:
#include <dini>

public OnPlayerConnect(playerid)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,aname,sizeof(aname));
    if(dini_Exists("aname.ini"))
    {
        SendClientMessage(playerid,-1,"[x] Logue-se para carregar sua conta...");
    }
    else if(!dini_Exists("aname.ini"))
    {
        dini_Create("aname.ini");
        dini_IntSet("aname.ini", "Dinheiro", 0);
    }
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,aname,sizeof(aname));
    dini_IntSet("aname.ini","Dinheiro",GetPlayerMoney(playerid));
    return 1;
}
public OnPlayerSpawn(playerid)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,aname,sizeof(aname));
    GivePlayerMoney(playerid,dini_Int("aname.ini","Dinheiro"));
    return 1;
}
Код:
Meus Projetos
¤ GameModes ¤
Brasil City Virtual 0.3e ---- 40 % Completed »» Forum: BcvGames.forumbrasil.net »» Site: Gta Lokidoido »» Servidor: [0.3e] • Brasil City Virtual • [RPG v1.0] »» Equipe: Murilo / dPlaYer / Malakas / Bruno_. e Emerson_.
Reply


Messages In This Thread
Saving Money - by Nix92 - 17.07.2012, 00:51
Re: Saving Money - by Ballu Miaa - 17.07.2012, 04:24
Re: Saving Money - by Nix92 - 17.07.2012, 04:24
Re: Saving Money - by Ballu Miaa - 17.07.2012, 04:30
Re: Saving Money - by Nix92 - 17.07.2012, 04:34
Re: Saving Money - by Ballu Miaa - 17.07.2012, 04:40
Re: Saving Money - by [BOPE]Seu._.Madruga - 17.07.2012, 07:44

Forum Jump:


Users browsing this thread: 1 Guest(s)