stock KickEx(playerid) { SendClientMessage(playerid, 0xAA0000FF, "Has sido kickeado del servidor."); SetTimerEx("KickearJugador", 500, false, "i", playerid); } forward KickearJugador(playerid); public KickearJugador(playerid) { Kick(playerid); }
stock KickEx(playerid, razon[]) { new string[144]; SendClientMessage(playerid, 0xAA0000FF, "Has sido kickeado del servidor."); if (strlen(razon) > 0) { format(string, 144, "Razon: %s", razon); SendClientMessage(playerid, -1, string); } SetTimerEx("KickearJugador", 500, false, "i", playerid); } forward KickearJugador(playerid); public KickearJugador(playerid) { Kick(playerid); }