29.04.2012, 12:21
pawn Код:
COMMAND:mp(playerid, params[], inputtext[])
{
new PlayerA, Speed[145];
GetPlayerName(playerid, Name, sizeof(Name));
if (sscanf(params, "sd", PlayerA, inputtext)) return SendClientMessage(playerid, 0xFF0000AA, "Use: /mp [id][texto]");
if (IsPlayerConnected(PlayerA))return SendClientMessage(playerid, 0xFF0000AA, "jogador off");
format(Speed,sizeof(Speed),"%s(ID:%d):%s.",Name,playerid,inputtext);
SendClientMessage(PlayerA,-1,Speed);
format(Speed,sizeof(Speed),"Voce Enviou para %s:%s.",PlayerA,inputtext);
SendClientMessage(PlayerA,-1,Speed);
return 1;
}
pawn Код:
enum Info{
pAdmin
}
new Jogador[MAX_PLAYERS][Info];
stock SalvarContas(playerid)
{
new arq[64];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLogado] == 1)
{
format(arquivo,sizeof(arquivo, "Contas/%s.ini", PlayerName(playerid));
GivePlayerMoney(playerid, dini_Int(arquivo, "Dinheiro"));
SetPlayerScore(playerid, dini_Int(arquivo, "Level"));
dini_IntSet(arquivo, "Admin",Jogador[playerid][pAdmin]);
}
}
return 1;
}