15.08.2010, 15:18
Код:
if(IsPlayerAdmin(playerid)) { new cmds[128]; new giveplayerid; new tmp[256]; giveplayerid = strval(tmp); if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_SYSTEM,"Invalid id"); if(IsPlayerNPC(giveplayerid)) return SendClientMessage(playerid,COLOR_SYSTEM,"Not on npc"); new oname[24]; new pname[24]; GetPlayerName(playerid,oname, 24); GetPlayerName(giveplayerid, pname, 24); format(cmds,sizeof cmds,"Player %s has been kicked by Rcon Administrator %s",pname,oname); SystemMessageToAll(cmds); format(cmds,sizeof cmds,"kick %s",inputtext); SendRconCommand(cmds); }