Ajuda rapidao
#3

pawn Код:
CMD:kick(playerid, params[])
    {
        new String[128], Motivo[128], ID;
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo para usar este comando!");
        if(sscanf(params, "us[128]", ID, Motivo)) return SendClientMessage(playerid, -1, "Digite: /kick <id> <motivo>");
        if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");

        new pNome[MAX_PLAYER_NAME], iNome[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pNome, sizeof(pNome));
        GetPlayerName(ID, iNome, sizeof(iNome));
        format(String, sizeof(String), "(%d) %s kickou o jogador: (%d) %s - Motivo: %s", playerid, pNome, ID, iNome, Motivo);
        SendClientMessageToAll(-1, String);
        Kick(ID);
        return 1;
    }
Reply


Messages In This Thread
Ajuda rapidao - by Alisson Silva Alves - 25.10.2012, 15:56
Re: Ajuda rapidao - by death1 - 25.10.2012, 16:05
Re: Ajuda rapidao - by Ouro - 25.10.2012, 16:09
Re: Ajuda rapidao - by Alisson Silva Alves - 25.10.2012, 16:11
Re: Ajuda rapidao - by mau.tito - 25.10.2012, 16:18
Re: Ajuda rapidao - by Alisson Silva Alves - 25.10.2012, 16:19
Re: Ajuda rapidao - by mau.tito - 25.10.2012, 16:22
Re: Ajuda rapidao - by ForT - 25.10.2012, 16:24
Re: Ajuda rapidao - by Alisson Silva Alves - 25.10.2012, 16:26
Re: Ajuda rapidao - by Diogo123 - 25.10.2012, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)