17.07.2012, 07:44
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_.