12.07.2015, 22:05
pawn Код:
COMMAND:kick(playerid,params[])
{
new idkick,razon[100],kString[120];
if(sscanf(params, "us[100]", idkick, razon)) return SendClientMessage(playerid,COLOR_RED,">> Usa: /kick [ID] [Razуn]");
if(IsPlayerConnected(idkick))
{
new pName[MAX_PLAYER_NAME],sName[MAX_PLAYER_NAME];
GetPlayerName(idkick,pName,sizeof(pName));
GetPlayerName(playerid,sName,sizeof(sName));
format(kString,sizeof(kString),">> El jugador %s ha sido expulsado del servidor por el administrador %s. [Razуn: %s]",pName,sName,razon);
SendClientMessageToAll(COLOR_RED,kString);
return Kick(idkick);
} else return SendClientMessage(playerid,COLOR_RED,">> El jugador no esta conectado.");
return 1;
}