[pawn]if (strcmp(\"/kick\", cmd, true, 5) == 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(cmd,\"is[50]\",id,ok))return SendClientMessage(playerid,-1,\"HIBA: /kick [iD] [Ok]\");
GetPlayerName(id, kirugottname, sizeof(kirugottname));
if(IsPlayerAdmin(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(-1,kickuzi);
Kick(id);
return 1;
}
else SendClientMessage(playerid, -1, \"HIBA: A játékos nem online.\");
return 1;
}
else SendClientMessage(playerid, -1, \"HIBA: Nem vagy admin!\");
return 1;
}[/pawn]
Bármit beírok mindig\"HIBA: /kick [iD] [Ok]\".