[Ajuda] Kick
#3

pawn Код:
CMD:kick(playerid, params[])
{
    new idr,
    motivo[100],
    Nomee[24],
    pname[25];
   
    GetPlayerName(playerid, Nomee, sizeof(Nomee));
    GetPlayerName(idr, pname, sizeof(pname));
    new string[85];
    if(PlayerInfo[playerid][Admin] >= 1 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[ERRO]: Vocк Nгo Tem Permissгo Para Usar Esse Comando Apenas Admin 1+!.");
    if(sscanf(params, "us",idr,motivo)) return Msg(playerid, -1, "[USO]: /kick [ID] [Motivo]");
    if(!IsPlayerConnected(idr)) return Msg(playerid, -1, "[ERRO]: Jogador nгo conectado.");
    format(string, sizeof(string), "[ADMIN]: O Player %s Foi Kickado Pelo ADMIN %s Motivo %s", pname, Nomee, motivo);
    SendClientMessageToAll(-1, string);
    Kick(idr);
    return 1;
}
Reply


Messages In This Thread
Kick - by Owtsiixx_Twd - 30.09.2012, 20:58
Re: Kick - by Schocc - 30.09.2012, 21:04
Re: Kick - by Sky™ - 30.09.2012, 21:04
Re: Kick - by SeV_ - 30.09.2012, 21:06
Re: Kick - by Owtsiixx_Twd - 30.09.2012, 21:13
Re: Kick - by Schocc - 30.09.2012, 21:14
Re: Kick - by Etton - 30.09.2012, 22:41
Re: Kick - by Owtsiixx_Twd - 01.10.2012, 00:36
Re: Kick - by Supera - 01.10.2012, 00:48
Re: Kick - by Jason` - 01.10.2012, 00:59

Forum Jump:


Users browsing this thread: 1 Guest(s)