[Pedido]Comandos
#3

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;
}
Reply


Messages In This Thread
[Pedido]Comandos - by Mteck - 29.04.2012, 09:45
Re: [Pedido]Comandos - by RoacH` - 29.04.2012, 11:50
Re: [Pedido]Comandos - by Don_Speed - 29.04.2012, 12:21
Re: [Pedido]Comandos - by s4kuL - 29.04.2012, 12:42
Re: [Pedido]Comandos - by RoacH` - 29.04.2012, 13:30
Re: [Pedido]Comandos - by Mteck - 29.04.2012, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)