26.08.2011, 17:26
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].");
}