[Ajuda] Comando nгo funciona !
#9

Tente assim:

pawn Код:
CMD:banir(playerid,params[])
{
    static
        ID,
        string[128],
        motivo[66],
        pAdmin[MAX_PLAYER_NAME],
        pBanido[MAX_PLAYER_NAME]
    ;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й Um Administrador(a).");
    if(sscanf(params, "us[65]", ID, motivo)) return SendClientMessage(playerid, -1, "Use: /Banir [ID] [Motivo]");
    if(!IsPlayerConnected(ID) && ID == playerid)) return SendClientMessage(playerid, -1, "Jogador desconectado ou й vocк mesmo");
   
    GetPlayerName(playerid, pAdmin, MAX_PLAYER_NAME);
    GetPlayerName(ID, pBanido, MAX_PLAYER_NAME);
   
    format(string, sizeof(string), "O Administrador {09D6E1}%s {FFFFFF}Banio {09D6E1}%s, {FFFFFF}Motivo: {09D6E1}%s",pAdmin,pBanido,motivo);
    SendClientMessageToAll(-1, string);
   
    Ban(ID);
    return 1;
}

CMD:kick(playerid,params[])
{
    static
        ID,
        string[128],
        motivo[66],
        pAdmin[MAX_PLAYER_NAME],
        pKickado[MAX_PLAYER_NAME]
    ;

    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й Um Administrador(a).");
    if(sscanf(params, "us[65]", ID, motivo)) return SendClientMessage(playerid, -1, "Use: /kick [ID] [Motivo]");

    if(IsPlayerConnected(ID) && ID == playerid)) return return SendClientMessage(playerid, -1, "Jogador desconectado ou й vocк mesmo");

    GetPlayerName(playerid, pAdmin, MAX_PLAYER_NAME);
    GetPlayerName(ID, pKickado, MAX_PLAYER_NAME);

    format(string, sizeof(string), "O Administrador {09D6E1}%s {FFFFFF}Kikou {09D6E1}%s, {FFFFFF}Motivo: {09D6E1}%s",pAdmin,pKickado,motivo);
    SendClientMessageToAll(-1, string);
   
    Kick(ID);
    return 1;
}
Reply


Messages In This Thread
Comando nгo funciona ! - by Lucas-Fc - 09.11.2012, 20:47
Re: Comando nгo funciona ! - by FeelLikeASir_ - 09.11.2012, 20:51
Re: Comando nгo funciona ! - by Lucas-Fc - 09.11.2012, 20:58
Re: Comando nгo funciona ! - by mau.tito - 09.11.2012, 21:14
Re: Comando nгo funciona ! - by Lucas-Fc - 09.11.2012, 21:18
Re: Comando nгo funciona ! - by Lucas_ - 09.11.2012, 23:24
Re: Comando nгo funciona ! - by mau.tito - 09.11.2012, 23:26
Re: Comando nгo funciona ! - by Wallker - 10.11.2012, 00:09
Re: Comando nгo funciona ! - by s4kuL - 10.11.2012, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)