[pawn] if(strcat(cmdtext, \"/kick\", true) == 0)
{
new kickuzi[256];
new id, ok[50];
new kirugottname[MAX_PLAYER_NAME];
new kirugoname[MAX_PLAYER_NAME];
GetPlayerName(playerid, kirugoname, sizeof(kirugoname));
if(sscanf(cmdtext,\"is[50]\",id,ok))return SendClientMessage(playerid,red,\"HIBA: /kick [iD] [Ok]\");
GetPlayerName(id, kirugottname, sizeof(kirugottname));
if(IsPlayerDAdmin[playerid])
{
if(IsPlayerConnected(id))
{
format(kickuzi, sizeof(kickuzi),\">>>> | {ffdd00}%s {ff0000}kirúgta {ffdd00}%s{ff0000}-t a szerverrõl. | >>>> [ Ok: {ffdd00}%s {ff0000}]\",kirugoname,kirugottname,ok);
SendClientMessageToAll(red,kickuzi);
Kick(id);
}
else SendClientMessage(playerid, red, \"HIBA: A játékos nem online.\");
}
else SendClientMessage(playerid, red, \"HIBA: Nem vagy admin!\");
return 1;
}[/pawn]