Non-Rp name Kick
#7

pawn Код:
dcmd_kicknonrp(playerid,params[])
{
    new target;
    if(!sscanf(params,"u",target))
    {
        if(IsPlayerConnected(target))
        {
            new Playername[MAX_PLAYER_NAME],Targetname[MAX_PLAYER_NAME],str[110];
            GetPlayerName(playerid,Playername,sizeof(Playername));
            GetPlayerName(target,Targetname,sizeof(Targetname));
            format(str,sizeof(str),"* %s was kicked, come back with a roleplay name such as %s.",Targetname,Playername);
            SendClientMessageToAll(-1,str);
            Kick(target);
        }
        else return SendClientMessage(playerid,-1,"Invalid player.");
    }
    else return SendClientMessage(playerid,-1,"Error: /kicknonrp [ID].");
}
Reply


Messages In This Thread
Non-Rp name Kick - by uprp - 26.08.2011, 17:11
Re: Non-Rp name Kick - by Jochemd - 26.08.2011, 17:15
Re: Non-Rp name Kick - by uprp - 26.08.2011, 17:18
Re: Non-Rp name Kick - by Jochemd - 26.08.2011, 17:20
Re: Non-Rp name Kick - by uprp - 26.08.2011, 17:22
Re: Non-Rp name Kick - by KeeDee - 26.08.2011, 17:24
Re: Non-Rp name Kick - by Jochemd - 26.08.2011, 17:26
Re: Non-Rp name Kick - by uprp - 26.08.2011, 17:29
Re: Non-Rp name Kick - by uprp - 26.08.2011, 17:37
Re: Non-Rp name Kick - by KoczkaHUN - 26.08.2011, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)